whack: thanks that makes sense. So really my question is then: does logstash instantiate one filter object per thread, or one that’s globally shared between the threads?
timfreun1 joined the channel
if I delve into that code again i’ll delete the comment
whack
michaelhart: for filters it's shared
timfreund has quit
michaelhart
whack: ouch. so it is really not thread safe then. zmq says that context can be shared but not sockets. putting a mutex around it won’t help performance either
whack
michaelhart: you could make it threadsafe with some work
michaelhart
whack: I’m willing to do it, as I really need it. Is there a plugin I could use as an example?
jiboumans has quit
samstav has quit
dblessing joined the channel
Kit_ has left the channel
jiboumans joined the channel
Jarth
cmdstation, try this on Centos
spuder has quit
"version" : "1.7.0_25", "vm_name" : "OpenJDK 64-Bit Server VM",
Shahar joined the channel
toordog-wrk joined the channel
To me this is the only difference with Ubuntu
lostcuaz_ has quit
spuder joined the channel
cmdstation
hm ill look into it
shoerain
coolacid: needs more logs in the repo :)
Jarth
@cmdstation: do not install the headless packages
coolacid
shoerain, feel free to PR a contribution ;)
cmdstation
yes I know that
shoerain
just 10 lines of a lot of common log formats would be all I'd want (apache, nginx, uwsgi, varnish, solr, rabbitmq, etc etc)
Jarth
this is the eaxact same version as at work, seems only difference
ros has quit
shoerain
coolacid: sure, maybe end of week
coolacid
Heck, do up some log lines, clean them up, and write some cool configs like I did with weblogs ;)
Jarth
now, all i get is no results because no indices found, hmm
andrewvc
Quick question, I'm trying to parse the date on the first line of a multiline filter. That works great, but it keeps adding in dates from the other lines, which default to the current time, so I get one correct time and a bunch of wrong times. Any ideas here?
jiboumans has quit
cbuckley has quit
cmdstation
Jarth: I only have java-1.7.0-openjdk.x86_64 1:1.7.0.55-2.4.7.1.el6_5 updates and that gave me the bug
coolacid: one thing I wanted to ask: have you tried parsing the 'request/querystring/API endpoint' out of %{COMBINEDAPACHELOG}? I haven't figured out a way to do that and it would be kind of useful. I would love to see 'request' broken up into smaller key/value pairs
digiv_ joined the channel
coolacid
shoerain, one could either put that into the original GROK, or GROK the resulting field into components.
shoerain, it would be possible if you know your REGEX well enough ;)
andrewvc
I just get multivalued lines like: "@timestamp" => [
[0] "2014-01-29T17:33:10.953Z",
[1] "2014-04-29T20:23:12.413Z"
],
shoerain
coolacid: I know my regex, don't know my logstash configs :(
andrewvc
Where the first line is the correct value. There's no way to have mutate just grab the first value off the @timestamp array is there?
seanhagen has quit
Apsu has quit
coolacid
shoerain, I can help you with that. I gotta run out for a bit, let's hook up later.
Apsu joined the channel
shoerain
cool, if you have an example you can point to, that would be great too
darthbator joined the channel
is it a separate `grok { ... }` block or within the original `grok { ... }` block?
cmihai has quit
coolacid
shoerain, simplest would be a second grok on the new field..
must be running.. bbiaw
digiv has quit
torrancew joined the channel
cmihai joined the channel
cmdstation has quit
nooxe joined the channel
Jarth
Do i need redis or not for logstash to start indexing files ?
michaelhart has quit
zquad
Jarth: you dont
toordog-wrk has quit
whack
andrewvc: the @timestamp array is a bug in 1.4.0
Jarth
thanks zquad
koendc joined the channel
toordog-wrk joined the channel
andrewvc
oh, thanks for the heads up whack, so there's no workaround eh
Jarth
do i need thsi ?
pip install elasticsearch-curator
still nothing indexed
I have this
output { elasticsearch { host => "localhost" } } in a separate file
andrewvc
whack: Ah, I see it in the ticket. Thanks for finding that, I was going nuts
Jarth
i define input in dedicated files
bcornelius has quit
avleen
whack: ping, if you're around :)
iamchrisf has quit
StubbsPKS
I have a quick question about raw fields. Does anyone know of a good resource that could explain their use to me? I have a field called loglevel that I am trying to report on in kibana, and the widget keeps targeting loglevel.raw instead and that field is blank for some reason even though loglevel is populated properly.
scharf has quit
SegFaultAX has quit
Jarth
hmm, i've answered my own question, still no indices, now what
zquad
avleen: who are you calling whack?
talking tough over the internet
avleen
whack: Q about kv{} - do you know why it has such a complex regex scan, rather than just doing split() on the text?:-)
zquad: hah
actually that's not my real question
SegFaultAX joined the channel
because the moment i hit 'enter' i realised why
the real question is a "bug" where I'm trying to split querystrings, but sometimes someone will hit http://example.com/foo?12345
and '12345' ends up as a string rather than {"12345": ""}
and then elastic search cries on trying to insert it
zbp joined the channel
darthbator
Hey all is here a config or cookbook out there that deals with parsing a php error log? I started writing a config to do it and quickly came to realize it would be much more work then I had originally thought to merge all the multilines and what not.
Jarth_ joined the channel
iamchrisf joined the channel
eriko joined the channel
Jarth has quit
zquad has quit
z0mbix joined the channel
koendc has quit
pheaver has quit
scalp42 has quit
nywilken has quit
lz-dylan joined the channel
revolt has quit
avleen
actually I take back what I said, because I think this works, and I solves my "missing value" problem:
shoerain
Jarth_: you need either a running instance of elasticsearch on the default port (try 'curl -XGET http://localhost:9200'; to make sure it's running)