Title: logstash - open source log management (at logstash.net)
jason__
thanks man i'll give it a go
well shit
walkeran
and then wrap your filter in a if [type] == "mytype" { } ... or you could add a tag, and use a condiditional on the tag, etc
jason__
it's 3:45 on a friday I guess I didn't see it lol
zain joined the channel
walkeran
:)
Been there! No problem :)
jason__
I cna't set up multiple instances of the same input can I?
many to many sort of thing
volter
jason__: You can
walkeran
Sure can... not listening on the same port, of course, but you could have multiple udp inputs
jason__
is that how it's done if I have a ton (which I do) of thing I might need to parse out? say to differentiate a juniper ex4550 from a 3300 or 4200?
what's the "standard"
freezey_ joined the channel
walkeran
Alright this is blowing my mind... I have an input that uses the json codec, and in the json payload, there's an array. I'm assuming the array is being turned into a logstash array (when dumped into elasticsearch, the JSON looks right). Now, I'm trying to pass that array as-is to the "increment" field in a statsd output, which takes an array value
Doesn't seem to work for me, though.
thuhn has quit
freezey has quit
Seems that one should be able to take a field that is an array and then pass it to a setting in a plugin that accepts an array.
failshell
anyone load balancing logstash instances with haproxy?
jerrac
This grok filter should work, right?
match => {"message" => "%{COMBINEDAPACHELOG}", "message" => "%{MEDIASERVERALIAS:media_server_alias}"}
tnzr
does anyone run logstash with supervisord, and if so, have you found any problems when trying to specify a pluginpath?
walkeran
jerrac: Mmm... don't think so. However, what are you trying to do?
colinsurprenant has quit
jerrac
add the media_server_alias field with the regex I've set in my patterns folder.
colinsurprenant joined the channel
kjstone00 has quit
what about match => {"message" => "%{COMBINEDAPACHELOG} %{MEDIASERVERALIAS:media_server_alias}"}
walkeran
I *think* you'd need two grok filters, but I could be wrong
kjstone00 joined the channel
jason__
filter { grok { if [type] == "juniper" { match => [ "message" %SYSLOGBASE ] } } }
walkeran
That would assume that the message always contained a "combined apache log" followed by a space, followed by whatever "mediaserveralias" parses
jason__
like that or?
jerrac
ah
volter
You don't need two grok filters, but it can be more efficient.
You can try to match multiple patterns and decide what to do on a match.
jerrac
I did try a second grok filter earlier. It didn't work quite the way I expected.
kjstone00 has quit
walkeran
volter: Would you use: match => { "message" => "someregex", "message" => "someotherregex" } then? The docs say match should take a hash, but the example passes an array, so that's kinda confusing :)
ktosiek joined the channel
volter
I think my notation was without a comma, but continuing on the next line. I'm not good with the grammar there.
jerrac
I wish the examples had one or two with more than a single match.
walkeran
jerrac: Oh heck... that's what you just said, that I said wouldn't work :D Sorry!! I thought you had an array in your match setting
jerrac: look at the Cisco Asa example on the logstash cookbook
viq_ is now known as viq
incry6t1 has quit
walkeran
Anyone have any ideas with my "JSON array -> json codec -> output setting that accepts an array" issue?
danshultz has quit
danshultz joined the channel
karnamonkster1 has quit
tjr9898__ has quit
cloughrm has quit
karnamonkster joined the channel
danman joined the channel
WrathChylde has quit
danshultz has quit
WrathChylde joined the channel
Coolacid[cloud]
walkeran: could you gist your config, and sample data. also, if possible add the stdout output plugin with rubydebug codec.
walkeran: also, increment takes an array of names... not an array.
walkeran
Coolacid[cloud]: Will do the gist. However, "increment takes an array of names... not an array." confuses me. Sounds like my issue, but that doesn't make sense to me
patarr
is there any word on improving the rabbitmq plugins? From what I can tell right now, logstash keeps retrying rabbit indefinitely if it can't connect...
cloughrm joined the channel
kepper joined the channel
zz_paulczar is now known as paulczar
Coolacid[cloud]
walkeran: so, your giving the statsd output the names of the counters you want to increment,
paulczar is now known as zz_paulczar
al1o joined the channel
patarr: not that I saw, there is a jira with some ideas tho.