Advertisement
Guest User

Untitled

a guest
Feb 7th, 2017
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.61 KB | None | 0 0
  1. root@8664f7cda045:/opt/logstash/bin# ./logstash -f /etc/logstash/conf.d/ --configtest
  2. The given configuration is invalid. Reason: Expected one of #, {, } at line 512, column 34 (byte 17499) after output {
  3.  
  4. # ---------------- NOT NEEDED ----------------
  5. #if [type] == "timing" {
  6. #
  7. # file {
  8. # path => "/output/timing.log"
  9. # }
  10. #
  11. # stdout { codec => rubydebug }
  12. #
  13. # elasticsearch {
  14. # host => "127.0.0.1"
  15. # cluster => "logstash"
  16. # index => "timing-%{client}-%{+YYYY.MM.dd}"
  17. # template => "/opt/logstash/templates/timing.json"
  18. # template_name => "timing"
  19. # manage_template => true
  20. # }
  21. #}
  22.  
  23. #if [type] == "application" {
  24. # file {
  25. # path => "/output/application.log"
  26. # }
  27. # stdout { codec => rubydebug }
  28. #
  29. # elasticsearch {
  30. # host => "127.0.0.1"
  31. # cluster => "logstash"
  32. #
  33. # index => "application-%{client}-%{+YYYY.MM.dd}"
  34. # template => "/opt/logstash/templates/application.json"
  35. # template_name => "application"
  36. # manage_template => true
  37. # }
  38. #}
  39. # ---------------- NOT NEEDED ----------------
  40.  
  41. if [type] == "sync" {
  42. #stdout { codec => rubydebug }
  43. elasticsearch {
  44. hosts => ["localhost:9202"]
  45. index => "sync-%{client}-%{+YYYY.ww}"
  46. template => "/opt/logstash/templates/sync.json"
  47. template_name => "sync"
  48. manage_template => true
  49. user => "reporting_admin"
  50. password => "Sc8gcqqmNikRP3C4i7KDAVTc"
  51. }
  52. }
  53.  
  54. if [type] =~ "^events.*" {
  55. #stdout { codec => rubydebug }
  56. if "_jsonparsefailure" in [tags] {
  57. file {
  58. path => "/opt/logstash/output/events-%{client}-%{+YYYY.ww}_failed_json.log"
  59. }
  60. } else {
  61. if [eventType] in ["CONTENT_PLAYBACK", "PAGE_VIEW", "SESSION", "CONTENT_CLICKED", "WATCH_CONTENT_CLICKED", "AD_IMPRESSION", "VAST_IMPRESSION", "VAST_START", "VAST_FIRSTQUARTILE", "VAST_MIDPOINT", "VAST_THIRDQUARTILE", "VAST_COMPLETE", "GAME_CLICKED", "MAGAZINE_CLICKED", "READ_MAGAZINE_CLICKED", "PLAY_NOW_GAME_CLICKED", "CONTENT_PLAYBACK_ERROR", "LICENSE_UNAVAILABLE_POPUP_SHOWN", "SKE_ENTITLEMENT_ERROR", "DRM_POPUP_SHOWN", "SKE_ENTITLEMENT_SUCCESS", "WATCH_TRAILER_CLICKED"] {
  62. elasticsearch {
  63. hosts => ["localhost:9202"]
  64. index => "events-%{client}-%{+YYYY.ww}
  65. template => " {:level=>:fatal}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement