Skip to content

Commit

Permalink
Merge pull request #319 from splunk/update/guess-timezone
Browse files Browse the repository at this point in the history
Add guess-timezone() to sources with epoch timestamps
  • Loading branch information
Ryan Faircloth authored and GitHub committed Feb 11, 2020
2 parents 2f3d8cf + 4bd769c commit 3d8d39b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion package/etc/conf.d/filters/cisco/meraki.conf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ parser p_cisco_meraki {
};
parser {
date-parser(format('%s')
template("${EPOCH}"));
template("${EPOCH}")
flags(guess-timezone)
);
};
};

Expand Down
8 changes: 6 additions & 2 deletions package/etc/conf.d/log_paths/lp-common_event_format.conf.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,15 @@ parser p_cef_header {
};

parser p_cef_ts_rt {
date-parser(format("%s") template("${.cef.rt}")
date-parser(format('%s')
template("${.cef.rt}")
flags(guess-timezone)
);
};
parser p_cef_ts_end {
date-parser(format("%s") template("${.cef.end}")
date-parser(format('%s')
template("${.cef.end}")
flags(guess-timezone)
);
};

Expand Down

0 comments on commit 3d8d39b

Please sign in to comment.