-
Notifications
You must be signed in to change notification settings - Fork 189
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
Is there a possibility to change to OUTPUT file to a custom /var/log destination #15
Comments
You can do with rsyslog. for example with |
Adding that plain file backend is a good idea because having systemd-journald(8) handle possibly vast numbers of messages does incur quite some cost in CPU overhead. |
Possibly; I will add it to the list of suggestions to debate. Would it be better to build log rotation into Sysmon or provide a method that logrotate could use to rotate for it? |
IMHO better to use external logrotate for rotation with just ensuring a HUP signal forces reopening log file. But that does not prevent to have option to log a file directly without passing by rsyslog. most SIEM connector/forwarder handles that without issue. avoid rsyslog/journald overhead. Amusingly enough, not the Microsoft Monitoring Agent or Azure Monitoring Agent for now, I believe. |
A problem with relying on logrotate (the implementation, not the concept) is that it is usually not run very often. (The presence of a |
agreed on rotation frequency. |
@juju4 will the solution to mention result in the file being a pure xml formattet log data? the reason i ask is that im looking at how one can ship sysmon log data off the endpoint having a xml in json within syslog file presents a bit of a problem when the data then have to be ingested in xyz log managment platform. the data is there but getting it in a good workable datashema takes extra work (its doable no doubt) the datachema and thus fieldnames etc is a pre requsite to easily run sigma rules against the sysmon data |
at this point, there is no solution implementation so it is still opened but unlikely, logs are written per event, most often line by line which means log file can't be a full valid json or xml which both have start/end marker. Most SIEM/logging platforms have parse xml operators (same than json) in cli, xmllint or sysmonLogView are the main option but sysmonLogView is not very customizable IMHO and xmllint requires a fully valid xml input so needs some commandline-fu for processing. example
less straightforward than jq and json. |
Is there a possibility to change to OUTPUT file to a custom /var/log destination ?
In some cases you want to use for example /var/log/sysmon instead of the standard syslog, since it will overload the syslog for Linux admins. Additionally we can ensure that logging tools easily can harvest different formats without running to much reg matches.
The text was updated successfully, but these errors were encountered: