Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. <source>
  2. @type exec
  3. <parse>
  4. @type json
  5. </parse>
  6. command sh /etc/td-agent/checkjournal.sh
  7. tag influx
  8. </source>
  9.  
  10. <match influx.**>
  11. @type copy
  12. <store>
  13. @type stdout
  14. </store>
  15. <store>
  16. @type forward
  17. <server>
  18. name elk-server
  19. host 192.168.30.3
  20. port 10515
  21. </server>
  22. </store>
  23. </match>
  24.  
  25.  
  26. Checkjournal.sh : contains below cold
  27.  
  28. exec journalctl --since=now -f -u influxdb
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement