Advertisement
Alicelucky

Aug15/16/18/21/22-12

Sep 28th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. input {
  2. beats {
  3. port => 5044
  4. ssl => true
  5. ssl_certificate => "/etc/logstash/logstash.crt"
  6. ssl_key => "/etc/logstash/logstash.key"
  7. }
  8. }
  9. filter {
  10. json {
  11. source => "message"
  12. }
  13. date {
  14. match => ["ts", "ISO8601"]
  15. }
  16. mutate {
  17. remove_field => ["ts","source","type","@version","beat","fields","offset","input_type","message","tags","host"]
  18. rename => { "fields[node]" => "node" }
  19. }
  20. }
  21. filter {
  22. geoip {
  23. source => "id.orig_h"
  24. database => "/root/geo.mmdb"
  25. target => "orig_h"
  26. }
  27. geoip {
  28. source => "id.resp_h"
  29. database => "/root/geo.mmdb"
  30. target => "resp_h"
  31. }
  32. }
  33. output {
  34. elasticsearch {
  35. hosts => ["localhost:9200"]
  36. document_type => "%{node}"
  37. document_id => "%{uid}"
  38. }
  39. rabbitmq {
  40. durable => true
  41. exchange => ""
  42. exchange_type => "direct"
  43. heartbeat => 60
  44. host => "localhost"
  45. key => "canids"
  46. persistent => false
  47. port => 5672
  48. user => "canids"
  49. password => "management"
  50. vhost => "/"
  51. }
  52. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement