-
Notifications
You must be signed in to change notification settings - Fork 499
scl: add parser for netskope logs #2541
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
8d30f0e to
bffa2a3
Compare
|
Build SUCCESS |
|
That is coming from default-network-drivers(). Theres no point in creating
a separate source for all device types.
…On Thu, Feb 7, 2019, 17:01 László Szemere ***@***.*** wrote:
***@***.**** commented on this pull request.
------------------------------
In scl/netskope/plugin.conf
<#2541 (comment)>:
> @@ -0,0 +1,22 @@
+
+
+# sample log
+# <134>{"count": 1, "supporting_data": {"data_values": ["x.x.x.x", ***@***.***"], "data_type": "user"}, "organization_unit": "domain/domain/Domain Users/Enterprise Users", "severity_level": 2, "category": null, "timestamp": 1547421943, "_insertion_epoch_timestamp": 1547421943, "ccl": "unknown", "user": ***@***.***", "audit_log_event": "Login Successful", "ur_normalized": ***@***.***", "_id": "936289", "type": "admin_audit_logs", "appcategory": null}
+
+# assumed to be running with flags(no-parse), e.g. the entire incoming log
Can we also assume that netskope logs are coming over network? In this
case we can "include the flags(no-parse) assumption" by creating a whole
source block instead of a parser.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2541 (review)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AArldjjX_IMZdNExp5dhMozLNoMDX5I6ks5vLE3mgaJpZM4anlfQ>
.
|
bffa2a3 to
a7ae7ba
Compare
|
Build SUCCESS |
gaborznagy
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please include the new scl in these files too:
- packaging/debian/syslog-ng-core.install
- scl/CMakeLists.txt
scl/netskope/plugin.conf
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please link a reference document for netskope log format? I have not found any with a quick search.
It seems that "<134>" is hard coded to every message, and _insertion_epoch_timestamp is a fingerprint as well.
|
Both of these are true observations. This is a heuristics to fix the logs
coming from Netskope and the format is potentially not documented and can
change any time.
…On Fri, Feb 8, 2019 at 10:22 AM Gábor Nagy ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In scl/netskope/plugin.conf
<#2541 (comment)>:
> +
+# assumed to be running with flags(no-parse), e.g. the entire incoming log
+# message is in $MSG
+block parser netskope-parser(prefix(".netscope.")) {
+ channel {
+ rewrite {
+ subst("^<[0-9]+>", "");
+ };
+ parser {
+ json-parser(prefix(`prefix`));
+ };
+ };
+};
+
+application netskope[syslog-raw] {
+ filter { message("<134>{" type(string) flags(prefix)) and message("_insertion_epoch_timestamp"); };
Can you please link a reference document for netskope log format? I have
not found any with a quick search.
It seems that "<134>" is hard coded to every message, and
_insertion_epoch_timestamp is a fingerprint as well.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2541 (review)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AArldrFIu_OxXniyWKZA5VIzYh6c6EJSks5vLUG8gaJpZM4anlfQ>
.
|
Signed-off-by: Balazs Scheidler <[email protected]>
a7ae7ba to
353d712
Compare
|
Build SUCCESS |
Then is it worth to include something fragile into It sound to me, that the |
Well, we won't. These are "as is" contributions that anyone is welcome to adapt to their own liking and PRs are appreciated. Bugreports are also appreciated, which we should handle on a best effort basis. Usually though, if there's a problem, we already have a log sample to fix the parser with. So in fact, these kind of bugreports are a good source of getting log samples :) And these kind of support levels are pretty standard, log formats are breaking everywhere, still the value that we deliver is that we compiled them to make it easy to use and then make it easy to fix/upgrade. |
Signed-off-by: László Várady <[email protected]>
Signed-off-by: László Várady <[email protected]>
Signed-off-by: László Várady <[email protected]>
|
@MrAnno was nice enough to fix the outstanding issues which I have added to this branch. Removing wip |
|
Build SUCCESS |
Signed-off-by: Balazs Scheidler [email protected]