Advertisement
Typhoon

IoT Meetup. Logstash Example

Feb 14th, 2016
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 0.41 KB | None | 0 0
  1. # IoT Meetup. Logstash Example
  2.  
  3. input {
  4.   redis {
  5.     host => "127.0.0.1"
  6.     data_type => "channel"
  7.     db => 1
  8.     key => "iot"
  9.     type => "sensor"
  10.     codec => json
  11.   }
  12. }
  13.  
  14. #filter {
  15. #  date {
  16. #    match => [ "timestamp", "yyyy-mm-dd HH:mm:ss" ]
  17. #    timezone => "Europe/Bratislava"
  18. #  }
  19. #}
  20.  
  21.  
  22. output {
  23.   elasticsearch { hosts => localhost index => "iot" }
  24.   stdout { codec => rubydebug }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement