Advertisement
Guest User

Untitled

a guest
May 6th, 2015
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. input {
  2. twitter {
  3. consumer_key => "xyzt"
  4. consumer_secret => "xyzt"
  5. oauth_token => "xyzt-xyzt"
  6. oauth_token_secret => "xyzt"
  7. keywords => ["dittach", "Dittach", "dittach.com", "Dittach.com"]
  8. full_tweet => true
  9. type => "dittach_tweet"
  10. }
  11.  
  12. }
  13.  
  14. output {
  15. if [type] == "error_log" {
  16. elasticsearch {
  17. host => localhost
  18. index => "error_logs-%{+YYYY.MM.dd}"
  19. }
  20. }
  21. else if [type] == "dittach_tweet"{
  22. elasticsearch {
  23. host => localhost
  24. index => "dittach_tweets-%{+YYYY.MM.dd}"
  25. }
  26. }
  27. else {
  28. elasticsearch {
  29. host => localhost
  30. }
  31. }
  32.  
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement