19:20 PM
tomfoolry_ has quit
19:20 PM
rastro
jsandoval: plus you have no output section :)
19:21 PM
tomfoolry_ joined the channel
19:21 PM
DanielHolth
when does logstash set its own @timestamp on incoming json logs? I'd like to use that field to store the server's timestamp and have it preserved
19:22 PM
tomfoolry_ joined the channel
19:22 PM
rastro
DanielHolth: if by "server's timestamp" you mean that from original logfile, then use the date{} filter to overwrite @timestamp.
19:22 PM
TomasNunez joined the channel
19:23 PM
tomfoolry_ joined the channel
19:25 PM
tomfoolry_ joined the channel
19:26 PM
sbfox has quit
19:26 PM
xkr47 has quit
19:27 PM
sbfox joined the channel
19:28 PM
sbfox has quit
19:29 PM
sandwitch has quit
19:29 PM
DanielHolth
rastro problem is @timestamp is the name in the json logs apache has been generating, so would the date filter happen early enough in the chain?
19:30 PM
torrancew
if @timestamp is the generated log, it should "just work" if you're using the right codecs
19:30 PM
s/is/is in/
19:30 PM
rastro
DanielHolth: ok, so you have the log file timestamp already. What else did you need?
19:35 PM
habanero joined the channel
19:35 PM
DanielHolth
rastro I'm sending logs to redis as json strings, then decoding them on the log server with redis-input codec=json, and @timestamp gets overwritten
19:36 PM
tomfoolry_ joined the channel
19:38 PM
rastro
DanielHolth: from what i've heard, LS will leave a @timestamp value alone if it comes from the input...
19:39 PM
habanero has quit
19:40 PM
filippos has quit
19:41 PM
colinsurprenant joined the channel
19:42 PM
filippos joined the channel
19:44 PM
eper has quit
19:45 PM
torrancew
DanielHolth: what are you seeing, that suggests it's being overwritten?
19:46 PM
jsandoval
I finally got it working!
19:46 PM
DanielHolth
I pointed the file input at a log file with several days of back logs, but nothing before "right now" appears in Kibana
19:46 PM
jsandoval
19:46 PM
logstashbot
19:46 PM
jsandoval
in case anyone else needs it
19:47 PM
DanielHolth
... trying a separate json filter rather than the builtin redis codec
19:48 PM
habanero joined the channel
19:48 PM
torrancew
DanielHolth: what does your @timestamp field look like?
19:49 PM
sandwitch joined the channel
19:52 PM
DanielHolth
looks like the separate json filter works
19:52 PM
maybe the redis codec=json mechanism does not work
19:53 PM
whack
kireevco: I think someone added support for taking in headers from rabbitmq messages recently, but I don't remember
19:53 PM
afk for a bit
19:54 PM
dm3 joined the channel
19:55 PM
achan1 joined the channel
19:57 PM
kjstone00 joined the channel
19:58 PM
tombmbdil joined the channel
19:59 PM
bdpayne_ joined the channel
19:59 PM
pjanzen joined the channel
19:59 PM
tomfoolry joined the channel
20:00 PM
Tetha joined the channel
20:00 PM
kskurtveit1 has quit
20:01 PM
pjanzen
Hi guys, I am trying to match gid=8 with a grokpattern like this GID (gid=|gid=%{INT:gid}) in the match I do %{GID:gid} and I end up with "god"; [ 8 ] and with gid=8
20:01 PM
bdpayne has quit
20:01 PM
Rici joined the channel
20:01 PM
is god = gid
20:02 PM
torrancew
pjanzen: don't name your INT sub-pattern
20:02 PM
tomfoolry_ joined the channel
20:02 PM
Tetha
good evening -- I'm having a lot of trouble to get the sign the CLA for PR 2210 (or, getting the check to agree with me that I did). Could someone support me with that?
20:02 PM
pjanzen
ok... why not?
20:03 PM
torrancew
pjanzen: because then you wind up with two fields grok wanted to name gid...
20:03 PM
%{GID:gid} would expand to %{(gid=|gid=%{INT:gid}):gid}, more or less
20:04 PM
pjanzen
Ok, if I remove the sub-pattern I get INT [ 8 ] and I do not know what it is..
20:05 PM
darkpixel joined the channel
20:05 PM
tomfoolry has quit
20:06 PM
torrancew
pjanzen: where are you doing this work at?
20:06 PM
and what did you change it to?
20:06 PM
habanero has quit
20:06 PM
pjanzen
20:07 PM
logstashbot
20:07 PM
torrancew
ok. now what is the pattern you just tried?
20:07 PM
pjanzen
Let me create a gist....
20:07 PM
torrancew
thank you
20:07 PM
lunch, bbiaf
20:09 PM
pjanzen
20:09 PM
logstashbot
20:09 PM
torrancew
pjanzen: I recomment you enable "named captures only" and 'singles" fwiw
20:09 PM
and you are hoping that in the end, you'll have a field called "gid" that contains "gid=8", correct?
20:10 PM
pjanzen
I want either null or just 8
20:10 PM
mkaesz has quit
20:11 PM
torrancew
well, that's not at all what you have currently configured
20:11 PM
pjanzen
the pattern can be gid=8 or gid=
20:11 PM
torrancew
take a grok pattern %{FOO:bar}
20:11 PM
that says "take the named pattern FOO, and store whatever matches it in a field called "bar"
20:11 PM
in your first case, you were creating the "gid" field twice
20:11 PM
pjanzen
Sure I understand that
20:11 PM
torrancew
once with just a number
20:11 PM
and once with the whole text
20:12 PM
what you REALLY want, is probably something like:
20:12 PM
GID gid=%{POSINT:gid}
20:12 PM
and then you'd just use it like %{GID}
20:12 PM
that said, food time
20:12 PM
oh, add a ? after %{POSINT:gid}
20:12 PM
pjanzen
Ok but gid can also be just gid=
20:12 PM
torrancew
GID gid=%{POSINT:gid}?
20:12 PM
yeah, the ? makes the posint optional
20:13 PM
pjanzen
ok.. I'll try that...
20:13 PM
darkpixel has quit
20:15 PM
darkpixel joined the channel
20:15 PM
Rici has quit
20:16 PM
darkpixel1 joined the channel
20:17 PM
danman joined the channel
20:17 PM
torrancew, works like a charm... thanks..
20:19 PM
intransit joined the channel
20:19 PM
darkpixel has quit
20:20 PM
darkpixel joined the channel
20:22 PM
bdpayne joined the channel
20:22 PM
venturaville joined the channel
20:22 PM
venturaville has left the channel
20:22 PM
koendc has quit
20:23 PM
spuder joined the channel
20:23 PM
DanielHolth
oh, it was probably just sincedb start_position => "end" when I wanted "beginning"
20:23 PM
DanielHolth has left the channel
20:24 PM
darkpixel1 has quit
20:24 PM
davecore82 joined the channel
20:25 PM
darkpixel1 joined the channel
20:25 PM
darkpixel has quit
20:26 PM
kpike has quit
20:29 PM
darkpixel1 has quit
20:29 PM
darkpixel joined the channel
20:32 PM
darkpixel1 joined the channel
20:33 PM
darkpixel has quit
20:34 PM
bdpayne has quit
20:35 PM
koendc joined the channel
20:35 PM
jerryitt has quit
20:35 PM
bdpayne joined the channel
20:35 PM
erve joined the channel
20:37 PM
NightKhaos
One for weird questions: does the file output plugin hold onto the file handle between flushes, or does it refresh the file handle?
20:37 PM
dRiN has quit
20:37 PM
darkpixel joined the channel
20:39 PM
darkpixel1 has quit
20:43 PM
viq has quit
20:43 PM
WAit... if I'm reading the plugin correctly (whack?) it opens a new file descriptor for EVERY event?
20:44 PM
voxter joined the channel
20:48 PM
viq joined the channel
20:50 PM
dhanasekaran has quit
20:50 PM
kpike joined the channel
20:52 PM
tbragin_ joined the channel
20:53 PM
Rapture joined the channel
20:54 PM
xkr47 joined the channel
20:55 PM
kholloway joined the channel
20:55 PM
kpike has quit
20:57 PM
lucascastro has quit
20:58 PM
kpike joined the channel
21:01 PM
dhanasekaran joined the channel
21:02 PM
sandwitch has quit
21:03 PM
jsandoval has quit
21:04 PM
supersheep has quit
21:07 PM
kpike joined the channel
21:09 PM
sandwitch joined the channel
21:10 PM
vodka joined the channel
21:10 PM
dhanasekaran has quit