-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Modified auditd ingest pipeline to handle node=hostname format #19659
Conversation
…(man 5 auditd.conf) is a value other than none.
Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually? |
1 similar comment
Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually? |
💔 Tests FailedExpand to view the summary
Build stats
Test stats 🧪
Test errorsExpand to view the tests failures
Steps errorsExpand to view the steps failures
Log outputExpand to view the last 100 lines of log output
|
Pinging @elastic/siem (Team:SIEM) |
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 add a sample log file to https://github.com/elastic/beats/tree/117a97e23de9ec3617a9c6a05eff975726776bea/filebeat/module/auditd/log/test so that the change can be tested.
We'll update the PR afterwards to add the generated file (it's a matter of running GENERATE=true NOSE_TESTMATCH=auditd mage -d filebeat -v pythonIntegTest
).
…rameter on Cent 7
Andrew,
I have pushed a sample log file, please let me know how else to assist.
Thanks.
Kenny
…On Mon, Jul 6, 2020 at 7:05 AM Andrew Kroh ***@***.***> wrote:
***@***.**** requested changes on this pull request.
Can you please add a sample log file to
https://github.com/elastic/beats/tree/117a97e23de9ec3617a9c6a05eff975726776bea/filebeat/module/auditd/log/test
so that the change can be tested.
We'll update the PR afterwards to add the generated file (it's a matter of
running GENERATE=true NOSE_TESTMATCH=auditd mage -d filebeat -v
pythonIntegTest).
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#19659 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABMVWZYSESB5IEDINQXVP3TR2HD2XANCNFSM4OQWYKPA>
.
|
Thanks for the test samples @ipnerds ! I generated the test files and waiting for CI now. |
jenkins run tests |
jenkins run tests |
This change permits auditd logs to be ingested whether or not they begin with a node=. Previous to this change a type= was expected. It handles the case where name_format (man 5 auditd.conf) is a value other than none. Also adding 10 lines of resulting audit log with name_format = hostname parameter on CentOS 7. Co-authored-by: Marc Guasch <marc.guasch@elastic.co> (cherry picked from commit b48be52)
…node=hostname format (#20526) * Modified auditd ingest pipeline to handle node=hostname (#19659) This change permits auditd logs to be ingested whether or not they begin with a node=. Previous to this change a type= was expected. It handles the case where name_format (man 5 auditd.conf) is a value other than none. Also adding 10 lines of resulting audit log with name_format = hostname parameter on CentOS 7. Co-authored-by: Marc Guasch <marc.guasch@elastic.co> (cherry picked from commit b48be52) * Update CHANGELOG.next.asciidoc Co-authored-by: ipnerds <ipnerds@users.noreply.github.com>
…ne-2.0 * upstream/master: (39 commits) [ITs] Revert healthcheck for elasticsearchssl service to the previous behaviour (elastic#20558) [Heartbeat] Fix packaging (elastic#20566) [Heartbeat] Add Magefile to X-Pack (elastic#20549) [Packetbeat] Add "network" to event.category (elastic#20392) fix typo in docs (elastic#20541) Add service resource in k8s cluster role (elastic#20546) Update Golang version to 1.14.7 (elastic#20508) Add missing inputs to filebeat spec (elastic#20388) add warning log in aws and googlecloud module for API cost (elastic#20523) Fix fortinet.firewall.mem value to be interpreted as integer (elastic#19335) [CI] add more resilience (elastic#20505) [JJBB] fix credentials with a service account for golang-crossbuild (elastic#20537) [ITs] change healthcheck for elasticsearch (elastic#20514) [JJBB] fix credentials with a service account (elastic#20535) chore(ci): use build step for checking if is PR (elastic#20536) [CI] runbld project name (elastic#20466) Add panw.panos.endreason field (elastic#18705) [Filebeat] Fix PANW field spelling "veredict" to "verdict" (elastic#18808) Fix typo in netflow module docs (elastic#18992) Modified auditd ingest pipeline to handle node=hostname (elastic#19659) ...
This change permits auditd logs to be ingested whether or not they begin with a node=. Previous to this change a type= was expected. It handles the case where name_format (man 5 auditd.conf) is a value other than none. Also adding 10 lines of resulting audit log with name_format = hostname parameter on CentOS 7. Co-authored-by: Marc Guasch <marc.guasch@elastic.co>
What does this PR do?
This change permits auditd logs to be ingested whether or not they begin with a node=. Previous to this change a type= was expected.
It handles the case where name_format (man 5 auditd.conf) is a value other than none.
Also adding 10 lines of resulting audit log with name_format = hostname parameter on CentOS 7.
Why is it important?
When running auditd with name_format other than none, the log messages will begin with node= parameter rather than type=. This behavior caused such audit logs to fail ingestion. The use case for setting name_format would be with an audit server collecting audit logs from multiple hosts.
Checklist
[ ] I have commented my code, particularly in hard-to-understand areas-~~ [ ] I have made corresponding changes to the documentation~~
-~~ [ ] I have made corresponding change to the default configuration files~~
-~~ [ ] I have added tests that prove my fix is effective or that my feature works~~
-~~ [ ] I have added an entry in
CHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.~~