Skip to content
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

scl: add support for "@cee" prefixed JSON payload #3569

Merged
merged 4 commits into from
Feb 24, 2021

Conversation

bazsi
Copy link
Collaborator

@bazsi bazsi commented Feb 11, 2021

    This format was originally specified by Mitre in its CEE specification,
    later adopted by the Lumberjack project run by Fedora/RedHat.
    
    https://cee.mitre.org/
    https://www.phoronix.com/scan.php?page=news_item&px=MTA2NDU
    
    The fedorahosted site is not completely gone.
    
    Now both projects are defunct, but there seems to be some adoption, for
    instance the JSON logging format of sudo does support emitting messages
    using this format.
    
    https://www.syslog-ng.com/community/b/blog/posts/parsing-sudo-json-logs-building-a-syslog-ng-configuration
    
    
    rsyslog supports this as well:
    https://www.rsyslog.com/json-elasticsearch/
    

This format was originally specified by Mitre in its CEE specification,
later adopted by the Lumberjack project run by Fedora/RedHat.

https://cee.mitre.org/
https://www.phoronix.com/scan.php?page=news_item&px=MTA2NDU

The fedorahosted site is not completely gone.

Now both projects are defunct, but there seems to be some adoption, for
instance the JSON logging format of sudo does support emitting messages
using this format.

https://www.syslog-ng.com/community/b/blog/posts/parsing-sudo-json-logs-building-a-syslog-ng-configuration


rsyslog supports this as well:
https://www.rsyslog.com/json-elasticsearch/

Signed-off-by: Balazs Scheidler <[email protected]>
Signed-off-by: Balazs Scheidler <[email protected]>
@bazsi bazsi changed the title Parse cee data scl: add support for "@cee" prefixed JSON payload Feb 11, 2021
@kira-syslogng
Copy link
Contributor

Build SUCCESS

Copy link
Collaborator

@MrAnno MrAnno left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

A question:
I've noticed that the syslog topic is embedded into default-network-drivers() (which is great), but it is also used in the system() source.

Is that intentional that we add Mitre CEE (CTS) and Lumberjack (and junos, panos, etc.) parsing to the system source?

Update:

the JSON logging format of sudo does support emitting messages using this format.

Sorry, I just saw this. I think that answers the CEE part of the question.

@bazsi
Copy link
Collaborator Author

bazsi commented Feb 14, 2021 via email

@Kokan Kokan merged commit 38b0d60 into syslog-ng:master Feb 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants