-
Hey all. Working with Auditbeat this week to understand how viable to would be to get into SO. I noticed there are some ingest node pipelines for auditd data (via filebeat), but nothing in the Logstash workflow for Auditbeat itself. Is that generally the preferred method for ingesting auditd data today? Thanks for any suggestions. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
This is very interesting. I hope you keep this thread updated as you progress. |
Beta Was this translation helpful? Give feedback.
-
Alright got some free time today and hacked together a solution for the time being. Would love some feedback from anybody if you think there is a better way to do it. First install auditbeat on a linux node that can reach the elasticsearch endpoint at port 9200. Configure auditbeat to output to ElasticSearch (and if you want dashboards, also configure Kibana in a similar manner):
Start Auditbeat up, and this will create index templates, ILM, alias etc. in ElasticSearch. You can confirm this worked by going to Stack Management -> Index Lifecycle Policies. There will be a new ILM called auditbeat. Now stop auditbeat, and comment out the output.elasticsearch section. Uncomment the logstash section like so:
at the very bottom of the auditbeat.yml config, change processors to add a tag:
This will tag all the data coming in to the logstash pipeline, and we can use it so send through a custom output on the search node. Edit /opt/so/saltstack/default/salt/logstash/pipelines/config/so/9500_output_beats.conf.jinja:
Notice the first condition has a new condition (and "auditbeat" not in [tags]), and at the bottom condition, the ILM rollover alias has to match your version of auditbeat. There's probably a better way to define that but haven't figured it out yet. Then so-logstash-restart for the config to be applied, and you should be good to go. Hope that helps somebody. Probably not production ready way to do it, but I needed this for a small implementation this week. |
Beta Was this translation helpful? Give feedback.
Alright got some free time today and hacked together a solution for the time being. Would love some feedback from anybody if you think there is a better way to do it.
First install auditbeat on a linux node that can reach the elasticsearch endpoint at port 9200. Configure auditbeat to output to ElasticSearch (and if you want dashboards, also configure Kibana in a similar manner):
Start Auditbeat up, and this will create index templates, ILM, alias etc. in ElasticSearch. You can confirm this wo…