Using logstash?

Find and share HowTos to various installations / configurations!
13 posts • Page 2 of 2
vedadramovic
Posts:121
Joined: Mon Apr 07, 2014 10:36 am

Re: Using logstash?

Post by vedadramovic »

thank you for fast reply

vogler
Posts:122
Joined: Thu Oct 28, 2010 8:32 am

Re: Using logstash?

Post by vogler »

you find a logstash configuration here: http://www.rocworks.at/wordpress/?p=769

vedadramovic
Posts:121
Joined: Mon Apr 07, 2014 10:36 am

Re: Using logstash?

Post by vedadramovic »

Thank you Andreas,

in case someone else, tries example on www.rocworks.at/wordpress/?p=769
I think there is an error
instead of

Code: Select all

filter {
multiline {
    pattern => "%{YEAR}.%{MONTHNUM}.%{MONTHDAY} %{TIME}"
    negate => true
    what => "previous"
  }
multiline should be placed inside input like below:

Code: Select all

input {
  file {
    path => "/proj/winccoa/smh/log/*.log"   
    codec => multiline {
       pattern => "%{YEAR}.%{MONTHNUM}.%{MONTHDAY} %{TIME}"
      negate => true
      what => "previous"
    }
  }
}
Best regards,
Vedad

13 posts • Page 2 of 2