Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@8664f7cda045:/opt/logstash/bin# ./logstash -f /etc/logstash/conf.d/ --configtest
- The given configuration is invalid. Reason: Expected one of #, {, } at line 512, column 34 (byte 17499) after output {
- # ---------------- NOT NEEDED ----------------
- #if [type] == "timing" {
- #
- # file {
- # path => "/output/timing.log"
- # }
- #
- # stdout { codec => rubydebug }
- #
- # elasticsearch {
- # host => "127.0.0.1"
- # cluster => "logstash"
- # index => "timing-%{client}-%{+YYYY.MM.dd}"
- # template => "/opt/logstash/templates/timing.json"
- # template_name => "timing"
- # manage_template => true
- # }
- #}
- #if [type] == "application" {
- # file {
- # path => "/output/application.log"
- # }
- # stdout { codec => rubydebug }
- #
- # elasticsearch {
- # host => "127.0.0.1"
- # cluster => "logstash"
- #
- # index => "application-%{client}-%{+YYYY.MM.dd}"
- # template => "/opt/logstash/templates/application.json"
- # template_name => "application"
- # manage_template => true
- # }
- #}
- # ---------------- NOT NEEDED ----------------
- if [type] == "sync" {
- #stdout { codec => rubydebug }
- elasticsearch {
- hosts => ["localhost:9202"]
- index => "sync-%{client}-%{+YYYY.ww}"
- template => "/opt/logstash/templates/sync.json"
- template_name => "sync"
- manage_template => true
- user => "reporting_admin"
- password => "Sc8gcqqmNikRP3C4i7KDAVTc"
- }
- }
- if [type] =~ "^events.*" {
- #stdout { codec => rubydebug }
- if "_jsonparsefailure" in [tags] {
- file {
- path => "/opt/logstash/output/events-%{client}-%{+YYYY.ww}_failed_json.log"
- }
- } else {
- 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"] {
- elasticsearch {
- hosts => ["localhost:9202"]
- index => "events-%{client}-%{+YYYY.ww}
- template => " {:level=>:fatal}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement