RITA and Security Onion 2.3.180 #9346
-
Hi, I have started working with Security Onion and been requested to integrate RITA and although I know it isn't fully supported, I have followed the following two guides: https://docs.securityonion.net/en/2.3/rita.html?highlight=rita These do not use the weslambert build (https://github.com/weslambert/securityonion-rita) is this the better option? In terms of the current setup I have installed RITA on our forward nodes and I am using the below to create the CSV files: rita import --rolling /nsm/zeek/logs/current $HOSTNAME If I look at the csv files created they are just a standard comma separated csv file. I have also enabled rita on the SO minion.sls and can see the configuration is added to the yml file after i restart the filebeat container: From the log I am not seeing much bar the below however I saw this in another post and this wasnt the issue and it was actually a shard problem (#8352) {"log.level":"error","@timestamp":"2022-12-07T21:33:22.372Z","log.logger":"input.filestream","log.origin":{"file.name":"filestream/prospector.go","file.line":294},"message":"Error while stopping harvester group: task failures\n\terror while adding new reader to the bookkeeper harvester is already running for file\n\terror while adding new reader to the bookkeeper harvester is already running for file\n\terror while adding new reader to the bookkeeper harvester is already running for file","service.name":"filebeat","id":"rita-dns","prospector":"file_prospector","ecs.version":"1.6.0"} I am unsure at this point how to troubleshoot this further so any assistance anyone can provide would be appreciated as in theory I cant really see any obvious problems |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 9 replies
-
Beta Was this translation helpful? Give feedback.
-
Increased log level for filebeat to debug and can see that the files are getting picked up but the inputs, also increased log level on Elasticsearch and logstash to check on the manager and search nodes but didn't see anything that helped further debug issue |
Beta Was this translation helpful? Give feedback.
-
Does a regular Saltstack highstate complete without issue? if you check the Elasticsearch indices from the CLI (from a search node, or manager node if running a traditional Elastic cluster), do you see an index for RITA logs?
Do you see any clues in |
Beta Was this translation helpful? Give feedback.
-
Problem for this was caused by a custom modification made to logstash, this stopped new outputs from being published to the search nodes resulting in rita data not being processed and explaining why I saw no errors in the logs. As we still needed the bespoke output we added the extra missing outputs into our custom search.sls located: /opt/so/saltstack/local/pillar/logstash/search.sls We added in the ones that were missing in our custom config from /opt/so/saltstack/default/pillar/logstash/search.sls More detail can be seen in the chat. Thank you @weslambert for you help in finding this issue |
Beta Was this translation helpful? Give feedback.
Problem for this was caused by a custom modification made to logstash, this stopped new outputs from being published to the search nodes resulting in rita data not being processed and explaining why I saw no errors in the logs.
As we still needed the bespoke output we added the extra missing outputs into our custom search.sls located:
/opt/so/saltstack/local/pillar/logstash/search.sls
We added in the ones that were missing in our custom config from /opt/so/saltstack/default/pillar/logstash/search.sls
More detail can be seen in the chat.
Thank you @weslambert for you help in finding this issue