Skip to content

Commit

Permalink
Rewrite lss for tighter filtering
Browse files Browse the repository at this point in the history
* Rewrite `lp-zscaler_lss` for tighter filtering
  • Loading branch information
Mark Bonsack committed Apr 21, 2020
1 parent f7e143f commit 56aaf66
Showing 1 changed file with 19 additions and 8 deletions.
27 changes: 19 additions & 8 deletions package/etc/conf.d/log_paths/lp-zscaler_lss.conf.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,35 @@ log {
channel {
# Listen on the specified dedicated port(s) for ZSCALER_LSS traffic
source (s_ZSCALER_LSS);
parser {
#.jsonLog.Timestamp Mar 04 20:37:53 2020
date-parser-nofilter(
format('%a %b %d %H:%M:%S %Y',
'%a %b %d %k:%M:%S %Y')
template("${.json.LogTimestamp}")
);
};
flags (final);
};
{{- end}}
channel {
# Listen on the default port (typically 514) for ZSCALER_LSS traffic
source (s_DEFAULT);
filter(f_msg_is_tcp_json);
parser {
#.jsonLog.Timestamp Mar 04 20:37:53 2020
date-parser(
format('%a %b %d %H:%M:%S %Y',
'%a %b %d %k:%M:%S %Y')
template("${.json.LogTimestamp}")
time-zone({{- getenv "SC4S_DEFAULT_TIMEZONE" "GMT"}})
flags(guess-timezone)
);
};
flags(final);
};
};
parser {
#.jsonLog.Timestamp Mar 04 20:37:53 2020
date-parser-nofilter(
format('%a %b %d %H:%M:%S %Y',
'%a %b %d %k:%M:%S %Y')
template("${.json.LogTimestamp}")
);
};

if {
filter {
match('.' value('.json.ClientZEN'))
Expand Down

0 comments on commit 56aaf66

Please sign in to comment.