Skip to content

Commit

Permalink
Update comment on TZ parser
Browse files Browse the repository at this point in the history
* Update comment on TZ parser
  • Loading branch information
Mark Bonsack committed Feb 14, 2020
1 parent b057805 commit 3a2da35
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion package/etc/conf.d/log_paths/lp-fortinet_fortiweb.conf.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,15 @@ log {
kv-parser(prefix(".kv.") pair-separator(",") template("${MSGHDR} ${MSG}"));
};

# Fetch timezone from timezone nv pair and parse unique format (no zero padding, e.g. "-8:00" rather than "-08:00"
# Reformat to "-0800"
rewrite {
subst('.*([\+-]\d+:\d+).*', $1, value(".kv.timezone"));
subst('([\+-])(\d)(?=:):(\d+)', "${1}0${2}${3}", value(".kv.timezone"));
subst('([\+-])(\d+):(\d+)', "$1$2$3", value(".kv.timezone"));
};

#2020-02-12,23:13:33
#2020-02-12,23:13:33-0800
#parse the date
parser {
date-parser(
Expand Down

0 comments on commit 3a2da35

Please sign in to comment.