is there a way to ask logstash what it's plugin path is? this seems stupid since it recognizes the other plugins just fine.
ggoZ has quit
kireevco has quit
awheeler joined the channel
It does that even if I don't set protocol.
torrancew
rdobbs: it sounds like the cookbook messed up the install somehow, frankly
I'll be back online later this weekend
rdobbs
anybody else?
I don't feel like I'm doing anything special
GregMefford
rdobbs: It looks like it's specifying a library path?
-I/opt/logstash/lib
rdobbs
gregmefford: dunno, haven't started reading through the logstash code.
is there a variable to force logstash to look for plugins/libraries in the right location?
BigBeerJR has quit
GregMefford
rdobbs: There is, but if other plugins are loading, it's probably not that. And also, I think it still loads from core in addition to the one you specify.
Can you gist your config?
tombar has quit
tombar joined the channel
rdobbs
"LoadError: no such file to load -- logstash/outputs/elasticsearch/protocol
any idea as to where it's looking for that? relative paths suck.
sure, there are a few involved because of upstart
pu22l3r joined the channel
abestanway joined the channel
GregMefford
Yeah, from looking at the code, I think it's a bug.
dpp has quit
It looks like it's doing a raw require instead of using the Environment::plugin_path.
feylya has quit
pu22l3r has quit
rdobbs
reallY? this must be the most common output
GregMefford
It looks like it would probably work if you happened to have the invocation perfect, but it's not as robust that way.
is there any way to make logstash startup in a reasonable amount of time?
al1o joined the channel
this thing starts up slower than my
sigh. no target for my pun.
al1o has quit
WrathChylde has quit
GregMefford
Don't use Java
:)
rdobbs
can I run this without java?
java makes pandas sad
al1o joined the channel
GregMefford
Yes, you can just use the bin/logstash command from inside the source directory.
It runs fine under MRI
rdobbs
then why does everybody use java?
like by default?
kizzale
hello logstash, does the conditional regexp parser support backreferences/
GregMefford
(caveat: it has to be a recent ruby, not 1.8.6)
rdobbs
hrm I'll try that next. it'd be nice to have a rapid test cycle
gibrown-away is now known as gibrown
GregMefford
Java does a good job at larger scale, I think.
rdobbs
LoadError: no such file to load -- logstash/monkeypatches-for-debugging
when I run with the cli you gave me.
GregMefford
What if you cd into /opt/logstash and then just run bin/logstash agent -f /etc/logstash/conf.d
rdobbs
ooh progress, new errors.
GregMefford
Sweet!
kizzale: Sorry I missed your message. Can you clarify what you're trying to accomplish?
rdobbs
ok that fixes it
rdobbs kicks java in the genitals
GregMefford
rdobbs: Horray! o/
So another thing that will help you iterate quickly is that if you only have a file input, LS will process them and then exit.
So you can use that to test out your Groks and stuff, just process a file from in to out and see if it works.
mdelnegro joined the channel
kizzale
GregMefford: a horrificially complicated regex that is the best way i can figure to do what i'm trying to do; if ~= /gigantic horrific regex with backreferences/ { ....... but messages that are mathching that regex elsewhere are not getting tagged with the add_tag i put in that block, so it's not matching in logstash
rdobbs
thanks man, this makes me feel less stupid. been one of those long days.
mdelnegro has quit
kizzale
one type of message going thru my logstash is totally blocking the grok parser, so i'd rather not grok those messages and just drop them, lest i block the filter (and processing dies)
rdobbs
time to go home and have the californian equivalent of an afterwork drink.
kizzale
rdobbs: lots of drink?
GregMefford
rdobbs: Glad I could help, have fun!
mdelnegro joined the channel
loide has quit
kizzale
unless.... is watchdog timer back in 1.4.x? i'm still on 1.3
pu22l3r joined the channel
Brandon_ has quit
GregMefford
kizzale: Ok, so it sounds like there are probably several ways to solve the problem you're having. Are you able to gist the relevant part of your config?
My logstash nodes are behind load balancer, and logstash forwarder nodes are forwarding logs to load balancer
nemothe__
I'm having trouble parsing an RFC3339 timestamp. Is RFC3339 not the same as ISO8601?
harshjha__
GregMefford: any suggestions here?
tombar has quit
tombar joined the channel
GregMefford
harshjha__: What is the bahavior you're seeing? No log traffic is hitting the indexer(s) behind the load balancer?
harshjha__
GregMefford: you are right
PLATOSCAVE has quit
federated_life has quit
GregMefford: and if I provide any input through stdin in logstash node itself, it can be correctly seen in output - stdout as well as elasticsearch
tombar has quit
GregMefford
nemothe__: I'm not familiar with RFC3339, but I just Googled it and it seems to refer to ISO8601 as the only examples contained in it. Can you give an example of what the timestamps look like that you're trying to parse?
thorrsson-work joined the channel
harshjha__
GregMefford: there are no issues in logs on other side. Also I can see messages like "Registrar received 9 events" on forwarder side.
*either side
GregMefford
harshjha__: What kind of load balancer is it? Are you sure it's configured to work the way you expect it to?
nemothe__
The timestamp is "2014-06-27T16:55:32.325Z-07:00" the issue it seems is RFC3339 has both the "Z" and the timezone offset. Grok isn't picking up the timezone offset so the entire thing failes
harshjha__
GregMefford: yes it is configured. It is elastic load balancer. I have my setup on AWS. I can see in the forwarder logs that it is connected to load balancer without issues. Load balancer is configured to take traffic at 443 and send it to 7286.
i kind of have a feeling there is somekind of congestion in logstash. my system has lotta resources. I still dont see logstash doing well
some one has some kind of perf charts?
thorrsson-work has quit
nemothe__
GregMefford: bug in the library I'm using thanks
PLATOSCAVE joined the channel
kizzale
rc_: have you increased the # of filter workers?
GregMefford
nemothe__: Yeah, that makes sense that it would be confused by having a Z and an offset. You should be able to match it with the following Grok expression: %{TIMESTAMP_ISO8601}(?:Z%{ISO8601_TIMEZONE})?
kizzale
thats' the big thing -- by default it only has 1 filter worker
if you have more cores, you can pump that up and significantly improve performance