Advertisement
Guest User

Untitled

a guest
Apr 26th, 2020
349
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.89 KB | None | 0 0
  1. Edit the suricata*.yaml files so it creates a log file of the events/alerts
  2. sudo vi /opt/unifi/ips/config/suricata_low.yaml
  3. sudo vi /opt/unifi/ips/config/suricata_high.yaml
  4.  
  5. add the section between the comments below in the 2 files.
  6. outputs:
  7. # everything below here
  8. - eve-log:
  9. enabled: yes
  10. filetype: regular #regular|syslog|unix_dgram|unix_stream|redis
  11. filename: eve_filebeat.json
  12. filemode: 666
  13. # the following are valid when type: syslog above
  14. #identity: "suricata"
  15. #facility: local5
  16. #level: Info ## possible levels: Emergency, Alert, Critical,
  17. ## Error, Warning, Notice, Info, Debug
  18. types:
  19. - alert
  20. - http:
  21. extended: yes # enable this for extended logging information
  22. - dns
  23. - tls:
  24. extended: yes # enable this for extended logging information
  25. - files:
  26. force-magic: yes # force logging magic on all logged files
  27. force-md5: yes # force logging of md5 checksums
  28. - drop
  29. - ssh
  30. - smtp
  31. - flow
  32. # everything above here
  33.  
  34. - eve-log:
  35. enabled: yes
  36. filetype: unix_dgram #regular|syslog|unix_dgram|unix_stream|redis
  37. filename: eve_stat.json
  38.  
  39.  
  40. Install Filebeat as you have discribed but enable the suricata module.
  41. FOR THE SURICATA.YML MODULE
  42.  
  43. # Module: suricata
  44. # Docs: https://www.elastic.co/guide/en/beats/filebeat/7.6/filebeat-module-suricata.html
  45.  
  46. - module: suricata
  47. # All logs
  48. eve:
  49. enabled: true
  50.  
  51. # Set custom paths for the log files. If left empty,
  52. # Filebeat will choose the paths depending on your OS.
  53. var.paths: ["/var/log/suricata/eve_filebeat.json"]
  54.  
  55. To run filebeat even disconnected. > I don't know how to get filebeat in as a service if someone can share that.
  56. nohup /home/YOURACCOUNT/filebeat/filebeat run -c /home/YOURACCOUNT/filebeat/filebeat.yml >/dev/null 2>&1 &
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement