Guest User

Untitled

a guest
Dec 14th, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. output {
  2.  
  3. if "_grokparsefailure" not in [tags] {
  4. if [type] == "frinit" or "frdriver" {
  5. if "ERROR" or "WARN" in [fr_log_level] {
  6. elasticsearch {
  7. index => "fr-%{+YYYY.MM.dd}"
  8. hosts => ["localhost:9200"]
  9. }
  10. }
  11. }
  12.  
  13. if [type] == "nginx_access" {
  14. elasticsearch {
  15. index => "nginx-%{+YYYY.MM.dd}"
  16. hosts => ["localhost:9200"]
  17. }
  18. }
  19.  
  20. if [type] == "ntpsync" {
  21. elasticsearch {
  22. index => "ntp-%{+YYYY.MM.dd}"
  23. hosts => ["localhost:9200"]
  24. }
  25. }
  26.  
  27. if [type] == "sales" {
  28. elasticsearch {
  29. index => "sales-%{+YYYY.MM.dd}"
  30. hosts => ["localhost:9200"]
  31. }
  32. }
  33.  
  34. if [type] == "terminal" {
  35. elasticsearch {
  36. index => "terminal-%{+YYYY.MM.dd}"
  37. hosts => ["localhost:9200"]
  38. }
  39. }
  40. }
  41. }
Add Comment
Please, Sign In to add comment