Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2014
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. input {
  2. redis {
  3. host => "127.0.0.1"
  4. data_type => "pattern_channel"
  5. key => "web:production:*"
  6. codec => json
  7. }
  8.  
  9. filter {
  10. if [key] == "web:production:request" {
  11. alter {
  12. add_field => { "index_type" => "request" }
  13. }
  14. }
  15.  
  16. if [key] == "web:production:system" {
  17. alter {
  18. add_field => { "index_type" => "system" }
  19. }
  20. }
  21. }
  22.  
  23. output {
  24. elasticsearch {
  25. index => "web-production-%{+YYYY.MM.dd}"
  26. index_type => "%{index_type}"
  27. # THIS IS NOT WORKING
  28. protocol => "http"
  29. }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement