Advertisement
Guest User

Untitled

a guest
Jan 19th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. {"@timestamp":"2017-01-19T15:42:25.223Z","source":"host_1","level":"INFO","message":"Log event #1"}
  2.  
  3. input {
  4. redis {
  5. host => "redis"
  6. data_type => "list"
  7. key => "my-key"
  8. }
  9.  
  10. filter {
  11. grok {
  12. match => ["message", "%{TIMESTAMP_ISO8601:tstamp}"]
  13. }
  14.  
  15. date {
  16. match => ["tstamp", "ISO8601"]
  17. }
  18. }
  19.  
  20. output {
  21. elasticsearch {
  22. hosts => ["my-elasticsearch-host:9200"]
  23. index => "my-index"
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement