My overall symptoms are that I just setup logstash
and it works if I keep restarting the logstash server
the stdout logs are written 2 - but it just stops
some relevant errors
{:timestamp=>"2015-05-29T13:33:46.065000-0700", :message=>"Got error to send bulk of actions to elasticsearch server at localhost : blocked by: [SERVICE_UNAVAILABLE/1/state not recovered / initialized];[SERVICE_UNAVAILABLE/2/no master];", :level=>:error}
and..
Failed to flush outgoing items", :outgoing_count=>65
the 2nd one I have found hits on the internet - and they talk about mismatches between Elastic Search and LogStash
but the versions that I am using come from article on digital ocean - so I have to assume it was tested
t4nk524: even if things are setup properly, they can still go off the rails :) "no master" sounds like your cluster is unhappy ?
t4nk524
everything is running on localhost
lumberjack sending from systems to a logstash instance and one ES node all on one system
pcrook
Is the flow through the filter section described anywhere? I haven't yet found anything explaining when filter processing ends for an individual event. For example, can one event flow through two different "if" statements if it matches both? Is this documented anywhere?
rwhavens has quit
whack
pcrook: I don't know if it's documented, but filter sections are a set of instructions. The event goes through _everything_
it's only skipped if you use a conditional and that condition is not met
you can nest 'if' blocks, or have a million 'if' blocks, whatever you want
NoodlesNZ joined the channel
rastro only has 183 if blocks :(
tgodar has quit
log-of-danofsatx joined the channel
rastro: :'(
rastro
whack: at least i have a goal now :)
spgingras has quit
pcrook
whack, so an event only falls out at the closing curly brace. That's what I needed. Thanks.
tebriel joined the channel
NoodlesNZ has quit
rastro
pcrook: drop{} will also kill it before the end. ruby code, too.
whack
pcrook: it's supposed to work similarly to other programing languages, where things are executed in order and branches are taken if the conditions are met
(where branches are if, else if, and else)
ph has quit
tebriel joined the channel
pauldev-work
I have an error log which prints out java error output. Some of the messages are multiline stack traces, but others are single-line debug outputs. Is the correct way to filter these out with 2 different filter blocks?
pcrook
rastro, are you saying that certain Ruby statements will terminate further filtration or that any use of the ruby filter jumps out?
gentunian has quit
rastro
pcrook: the drop{} filter will stop filters and output for that event. You can do the same in ruby{}.
jstoiko joined the channel
mleung has quit
pcrook
rastro and whack - thanks again
whack
<3
mleung joined the channel
mleung has quit
failshell joined the channel
kit_
when logstash is going crazy (like 100% cpu and nothing arriving on elasticsearch) is there a simpler way to find out what is going on than debugging java like this http://www.semicomplete.com/blog/geekery/debugg... ?
kit_: there's no much visibility into LS (yet). Do you have a stdout{} output?
thegrif has quit
thegrif joined the channel
RobertDupont
you can add --debug to the parameters when starting
also look at the log files
whack
kit_: did you try the `top -Hp logstash_pid` as recommended in that url?
supersheep has quit
kit_: because that might help start your path to debugging
cassianoleal has quit
derjohn_mob joined the channel
RobertDupont
pauldev-work, depending on how those 2 types of logs are printed, you might be able to handle that with just one multiline
[dee] has left the channel
echelon
hey, how do you use output pipe plugin to pass the output to rotatelogs
pauldev-work
do you mean depending on if it's printed by the same process or am I misunderstanding?
dm3 joined the channel
RobertDupont
<pauldev-work> do you mean depending on if it's printed by the same process or am I misunderstanding? --- if log format of the first line in both cases is the same
jkitchen joined the channel
M4g1c5t0rM joined the channel
zeki893 has quit
pauldev-work
RobertDupont: yea it is the same. First line is basically date, log-level, exception name : debugging output, then line terminates. If there's a second line it's initiated by stack trace
bracki has left the channel
echelon
pauldev-work: nvm, i got it :)
pauldev-work
oh, sorry echelon didn't know you were talking to me
echelon
pauldev-work: oh, i thought you were responding to me..
oh sorry, I answered too fast, yes I tried everything in this url, anyway LS was hung on connection limit by LSForwarders, I'll try to do the top faster no next problem
whack: yeah, but it helps me find them when you ask for tickets :)
whack
RobertDupont: noted, kv#12 should be an easy fix; I'll try to write a test to reproduce
m0nky: you can use the --log flag to have logstash log to a file
RobertDupont
awesome
m0nky
whack: thanks, i'll give it a whirl
RobertDupont
<whack> RobertDupont: noted, kv#12 should be an easy fix; I'll try to write a test to reproduce --- you can take what's in the ticket
s/ticket/issue
whack
yep! will do
zeki893 joined the channel
sindarina has quit
Walex joined the channel
M4g1c5t0rM has quit
RobertDupont: I can't reproduce it :(
RobertDupont
weird
whack
I updated the ticket with what I tested
RobertDupont
I'll give it a try again
klj has quit
kepper has quit
whack
rastro: not sure I'll be able to do date filter #23 today, right now the timezone handling is done at plugin startup time, not during parsing
pcrook
How do I get a "remaining text" match when using multiline? I want a "logmessage" field that's everything past the fields I extracted, but .* matches only to the next newline. Is this where a greedy matcher will help?
whack
pcrook: put (?m) at the beginning of your pattern
pcrook
oOo
you mean "(?m).*" ?
whack
show me your config?
just the 'match' line
pcrook: what version of logstash are you using?
RobertDupont
whack: I
whack: I'll see Monday with the IT guy to make the firewall send that log again
pcrook
whack, 1.4.2
RobertDupont
(he's not here today)
whack
pcrook: it defaults to matching across newlines in 1.5.0
pcrook: on logstash 1.4.2, do: "message" => "(?m)%{CATALINALOG}"
RobertDupont
<whack> RobertDupont: sorry I couldn't reproduce :( --- I tested and got the same results as you
pinophyta has quit
pcrook
whack, OK, but what is that prefix?
whack, and why put it on the entire line match rather than just on JAVALOGMESSAGE?
M4g1c5t0rM joined the channel
whack, works like a charm too
Hans1234 joined the channel
whack
pcrook: you can put it on the JAVALOGMESSAGE pattern if you wish
but it's different syntax then, I think
I think you'll need to do (?m:.*) Instead of just .*
RobertDupont
whack: if you're looking for another simple bug, I remember something with WMI plugin missing some code (happened during the move to individual repositories) for remote WMI. Or maybe it was eventlog