Advertisement
Guest User

PDU.conf

a guest
Apr 1st, 2015
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. input{
  2. file{
  3. type => "power"
  4. path=> "/tmp/power.log"
  5. }
  6. file{
  7. type => "temp"
  8. path=> "/tmp/temp.log"
  9. }
  10. }
  11.  
  12. filter{
  13. if [type] == "power" {
  14. grok{
  15. match => ["message", "%{TIMESTAMP_ISO8601:timestamp} %{NUMBER:power}"]
  16. }
  17. }
  18. if [type] == "temp" {
  19. grok{
  20. match => ["message", "%{TIMESTAMP_ISO8601:timestamp} %{NUMBER:temp}"]
  21. }
  22. }
  23. }
  24.  
  25.  
  26. output {
  27. elasticsearch { host => localhost }
  28. stdout { codec => rubydebug }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement