I will go blind looking at this json output from logstash
I'm on a Mac
Jahkeup_ has quit
[1]CasperGasper joined the channel
CasperGasper has quit
[1]CasperGasper is now known as CasperGasper
pablo__ has quit
logstashbot
New news from newjiraissues: Martin Cleaver created LOGSTASH-1193 - Is there a way to have verbose logging for my plugin but quiet logging for the rest of logstash? <https://logstash.jira.com/browse/LOGSTASH-1193>
ohlol has quit
MartinCleaver
I suppose I should be looking at my logstash logs through kibana
pr0m3 has quit
bemehow has quit
wa-- has quit
wa- joined the channel
jonconley has quit
Infin1ty
Anyone know how to upgrade the metadata correctly upgrading from 2.2.5 to 2.4.5 using config metadata since 1.x?
er, wops, wrong channel :D
lol :)
simmel
Anyone ever used logstash to parse OpenLDAPs logs? Since it's multiline I'm thinking grok and `break_on_match => false`, anyone got another better idea?
Title: logstash - open source log management (at logstash.net)
simmel
basti: Ooh, looks nice!
koendc joined the channel
kubes joined the channel
kubes has quit
basti
hu, just send a few thousand lines to logstash for testing. Redis queue is really fast growing. I guess indexer/elasticsearch is too slow to handle these queries. I already did all tipps from: http://jablonskis.org/2013/elasticsearch-and-lo... . Any further ideas. How many lines/s are possible
logstashbot
Title: ElasticSearch and Logstash Tuning | vaidas jablonskis (at jablonskis.org)
ehthayer joined the channel
akat
basti: IIRC electrical has a setup that can handle 250k entries per second?
viq
basti: I managed to reach 1500 events per second, though it was a somewhat convoluted test environment
akat
(that could be way off)
basti
electrical: Another hot tip for me? ;)
With what kind of hardware you did it and which tuning config for indexer/elasticsearch?
viq
basti: no tuning, mostly a vmware machine with 2 cores and 4 or 6 gigs of RAM
ksclarke joined the channel
csd126 joined the channel
electrical
hi basti: the machine i tested on was: 32 core, 128GB mem, 2 x SAS disks ( Raid 1 )
viq
Though from that experience it _really_ pays to separate logstash and ES
electrical
got about 30k/sec but should be able to do much more
basti
yeah 1.5k I currenty have. atm 6-7k are send to it
electrical
each logstash output can do about 3-5k/sec so you will need more logstash instances for pushing to ES.
viq
basti: advantage of logstash is that you can have multiple instances processing the logs from the queue
basti
ah okay, simply configure them to use same redis queue with same config?
viq
Yup
electrical
yeah indeed
basti
Trying it . .
(currenty vm with 16 cores and 10GB ram)
Jahkeup__ has quit
electrical
viq: the 250k/s setup is mainly theory at the moment. but the idea i have is pretty sound
tabolario has quit
the setup though requires allot of machines for different functions.
simmel
When using multiline is it possible to save a reference from the "old" message to the new one?
liku has quit
basti
simmel: What do you mean by "reference". Do you mean the "what" setting?
lexelby joined the channel
dwaynexyz has quit
nmische joined the channel
simmel
basti: Not really, the OpenLDAPs logs looks like this http://pastie.org/private/sqa7vo2vypvclxxg6trebq and I want to find the lines with "MOD" but I'm also interested in if the RESULT is "err=0". So I thought I could: 1, Find the "MOD dn="-line and store that as a uid tag, store "MOD
attrs=" as a attributes tag (preferably as an array) but only if "conn=from the previous MODs op=also from the previous MODs.* err=0" matches.
bullfinch joined the channel
faxm0dem
I'm using logstash with udp input coming from a distant syslog-ng. I very frequently get grokparsefailures, and it seems the syslog message is prefixed with a diamond character, e.g.: '<29>Jul 8 14:42:25 hostname/hostname ...'
any idea how this could be solved?
bullfinch is now known as Guest11466
basti
faxm0dem: pattern => \<%{NUMBER}\>, rest of your grok . . .
Or strip it via syslog and a template
faxm0dem
right, but I was wondering where this could come from
basti
Syslog default template
electrical: Currently running 24cores@32GB with 4 instances and it is still much to slow. Any further hint for me
faxm0dem
basti: syslog default template?
basti
faxm0dem: simply add to your syslogconfig template("$MSG") , than it is only sending the message without syslog timestamp and faciltiy, hostname
faxm0dem: There is a default template inside syslog-ng, which applies when you are not setting an own
faxm0dem
basti: right, I wasn't even looking at syslog-ng config. thanks!
basti
electrical: damn, io seems to be bottle neck
electrical
basti: what kind of storage is connected to it?
basti
I am just migrating to ssd's.
SAS had been there
electrical
okay.
even with sas i could do allot ( 30k/sec )
simmel
When testing a config, is there a shortcut to make logstash (agent) forget that it has ever parsed a file input already?
basti
currently i have permantly 100% utilisation
electrical
simmel: you will need to configure it to start at the begining of the file, and manually remove the .sincedb file
basti: oops okay
viq
basti: if it's disk io that limits you, see if you could enable compression somewhere along the way
willejs joined the channel
Either filesystem compression, or make ES compress the data
electrical
perhaps change the flush time?
willejs
hi I'm running log stash 1.1.12 and it seems like the client has a memory leak of some kind. Over a period of a week or so it fills the memory dedicated to the jvm memory (the default 384mb) and starts to swap at a steadily increasing level
once restarted the cycle happens again
basti
viq: nice idea. It is already enabled for version 0.90 in ES. I have 0.90.2
willejs
I'm only shipping logs to redis, and running syslog through log stash too.
electrical
willejs: did you limit the memory that logstash is allowed to used ? ( -xmx i believe )
simmel
electrical: Sweet, that worked. Thanks!
electrical
simmel: np :-)
dblessing joined the channel
juicer2 joined the channel
grasshopa joined the channel
itsmebp joined the channel
willejs
electrical: yes, to the default ~384mb
jessemdavis joined the channel
basti has left the channel
basti joined the channel
CasperGasper
willejs: if the box is swapping that implies that you haven't got 384mb+ spare -- the JVM can't exceed that Xmx setting. A mem leak would show up as back-back Full GC and logstash would lock up
willejs
CasperGasper: cheers you may be right i may not have xms set
CasperGasper
Xmx -- Xms is initial heap
willejs
so i know i have xmx set, but if i set booth to the same value it will ensure it won't swap
providing i have enough memory ;)
CasperGasper
it really just minimizes pauses for the heap expanding
basti
electrical: How high should be Xms in my setup? currenty its at 1MB (still much to sloow) 3GB XMX and running 3 instances of logstash indexer
CasperGasper
it's probably best to set Xms and Xmx to the same value
basti
That means, that every java thread has as much ram as the hole process is allowed to use. Or am I wrong?
cwebber joined the channel
CasperGasper
basti: no, it just means the initial heap size is the same as the max heap size --
saves time expanding it later on demand
basti
CasperGasper: ah okay, i am trying this ^^
Ouh, talking about xss ^^
xmx and xms should have of course same size
nmische has quit
jonconley joined the channel
nmische joined the channel
iamchrisf joined the channel
cbarraford|away is now known as cbarraford
faxm0dem
basti: as it turns out, the grok failures were due to the hostname field containing a slash: 'hostname/hostname'
basti: not sure as to why this should happen
pablo__ joined the channel
basti
faxm0dem: So wheres the Problem?
grasshopa
hi, I run logstash with java -Xmx1024m -jar logstash-1.1.13-flatjar.jar agent -f logstash.conf -- web --backend elasticsearch://156.123.17.18. The crashes with following error when I access with the logstash web client:java -Xmx1024m -jar logstash-1.1.13-flatjar.jar agent -f logstash.conf -- web --backend elasticsearch://156.123.17.18. Any thoughts on how I may resolve this?
BigBeerJR joined the channel
faxm0dem
basti: the problem is the pattern I had to replace %{SYSLOGHOST:syslog_hostname} with %{WORD:syslog_hostname}
basti
I guss "/" is not in class "WORD"
faxm0dem
which works fine but I don't understand why I get these weird hostnames in the hostname part of the message
basti
okay :-)
Some syslog magic
stackedsax1 joined the channel
fredrikb_ has quit
hankinnyc joined the channel
hankinnyc has quit
hankinnyc joined the channel
fredrikb joined the channel
fredrikb has quit
I am getting now weird error message: "Failed to index an event, will retry {:exception=>org.elasticsearch.action.UnavailableShardsException: [logstash-2013.07.08][14] [2] shardIt, [0] active : Timeout waiting for [1m]," Which timeout is meant`
axellj
stupid question: do all plugins on the logstash doc page ship with logstash, or do I need to track them down somewhere?
viq
axellj: those on the page are built in
CasperGasper
grasshopa: I think very few people use the builtin web client, everyone seems to use kibana instead. I'd recommend trying that.
viq
basti: my uneducated guess is that ES took over a minute trying to write a shard?
grasshopa: also it seems you're using integrated elasticsearch, it is really much much better to run a real one
basti
viq: Well, but why should there be a Problem and how can i debug it.