-
Notifications
You must be signed in to change notification settings - Fork 647
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
Add Suricata Eve logging to Telegraf #2239
Comments
|
Does it work when you add it manually to the file and restart the service via CLI? |
|
Yes it does
Mar 13, 2021 12:51:43 Michael ***@***.***>:
… Does it work when you add it manually to the file and restart the service via CLI?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub[#2239 (comment)], or unsubscribe[https://github.com/notifications/unsubscribe-auth/ADFKHBFKZZYDWJ4BHEHWUP3TDOX3PANCNFSM4XTPTPGA].
[data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEIAAABCCAYAAADjVADoAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAAnSURBVHic7cEBDQAAAMKg909tDwcUAAAAAAAAAAAAAAAAAAAAAPBjRFIAASHKmKkAAAAASUVORK5CYII=###24x24:true###][Tracking image][https://github.com/notifications/beacon/ADFKHBEXI4YSAQGFT4W6JL3TDOX3PA5CNFSM4XTPTPGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOF6ODMOI.gif]
|
|
I have been trying to work on this myself and I can get it to show up in the ui but it doesn't generate the correct telegraf config Below are the changes I made I added this to and the following to |
|
figured out I needed to edit |
|
Hey @tiny6996 - how did you get this to work? The user This permission issue is not showing up in the logs if you This is my workaround: Let us add root@opnsense:/usr/local/etc/suricata # pw group mod wheel -m telegraf
root@opnsense:/usr/local/etc/suricata # pw groupshow wheel
wheel:*:0:root,telegrafChange permissions on the folder and the file chmod 750 /var/log/suricata
chmod 750 /var/log/suricata/eve.jsonNow running However, this will not survive a reboot! And another thing - https://docs.influxdata.com/telegraf/v1.19/data_formats/input/json/
I would very much like the |
|
After doing the above, disabling / enabling Intrusion Detection, the permissions on the folder / file resets. Then this error showed up in I found out a reboot removes the user |
|
I will add a PR which lets telegraf run as run and it works with the existing checkbox: |
Important notices
Before you add a new report, we ask you kindly to acknowledge the following:
[x] I have read the contributing guide lines at https://github.com/opnsense/plugins/blob/master/CONTRIBUTING.md
[x] I have searched the existing issues and I'm convinced that mine is new.
[x] When the request is meant for an existing plugin, I've added its name to the title.
Is your feature request related to a problem? Please describe.
I am not able to send the contents of /var/log/suricata/eve.json to influxdb via telegraf
Describe the solution you'd like
I would like to be able to use the tail input plugin using the sample config below
Describe alternatives you've considered
I have considered use the syslog plugin but that is not exposed in the gui and would require a multiple step pipeline
Additional context
I am building an opensource RMM and would like to display suricata alerts in a monitoring dashboards
The text was updated successfully, but these errors were encountered: