0:00 AM
dharknes has quit
0:01 AM
rtoren_ joined the channel
0:02 AM
pcrook joined the channel
0:04 AM
zeroecco has quit
0:05 AM
rtoren has quit
0:06 AM
jbehrends has quit
0:07 AM
soulair joined the channel
0:07 AM
soulair
Hey everyone. What's the best way to send windows event logs to a logstash server?
0:08 AM
I've seen some about nxlog
0:08 AM
what are some other options?
0:09 AM
kireevco has quit
0:14 AM
warkolm
nxlog is probably the best
0:15 AM
soulair
Ok thats cool. It seems like a strong choice
0:17 AM
filenox joined the channel
0:19 AM
torrancew
nxlog is probably the best bet - just watch out, IIRC they still enable SSLv3 (not sure you can disable it, either :/)
0:20 AM
thumpba joined the channel
0:20 AM
oh, looks like they fixed it
0:21 AM
thumpba_ joined the channel
0:21 AM
soulair
Oh nice
0:21 AM
Im gonna have to learn it a bit
0:24 AM
dharknes joined the channel
0:24 AM
filenox has quit
0:27 AM
JDiPierro joined the channel
0:28 AM
JDiPierro has quit
0:28 AM
michaelhart joined the channel
0:30 AM
JDiPierro joined the channel
0:32 AM
robgssp joined the channel
0:34 AM
rtoren_ has quit
0:34 AM
rtoren joined the channel
0:36 AM
rayha joined the channel
0:40 AM
btobolaski joined the channel
0:44 AM
daveX7 has quit
0:45 AM
daveX7 joined the channel
0:48 AM
JDiPierro has quit
0:49 AM
gentunian has quit
0:51 AM
jonatin has quit
0:53 AM
dharknes has quit
0:55 AM
Baribal__ joined the channel
0:55 AM
mdedetrich joined the channel
0:58 AM
Baribal_ has quit
0:59 AM
iamchrisf joined the channel
1:02 AM
torqu3e has quit
1:07 AM
wt0f has quit
1:08 AM
robgssp has quit
1:10 AM
rojem joined the channel
1:10 AM
robgssp joined the channel
1:11 AM
Knuit
What is the proper way to GROK this value? It's the URI Query string from an IIS log: d=p6ed21QCM_0B4-6FKW-yJKL_khaQJL-sfsmf&t=6355844
1:12 AM
warkolm
what do you want to break out of it
1:13 AM
lucascastro joined the channel
1:14 AM
Knuit
Nothing, I just want to capture the entire value into a key
1:14 AM
rojem has quit
1:14 AM
shaun has quit
1:14 AM
It's contained within a tab-delimited line
1:15 AM
soulair has quit
1:18 AM
warkolm
maybe greedydata?
1:19 AM
have you tried using the grok debgger?
1:19 AM
1:19 AM
logstashbot
1:19 AM
kjstone00 joined the channel
1:19 AM
Knuit
I have yeah, greedydata looks like it grabs the remainder of the line though, this value is in the middle
1:21 AM
Rapture has quit
1:21 AM
supersheep has quit
1:24 AM
joefides joined the channel
1:25 AM
warkolm
define the other fields, then you can just take that one
1:26 AM
jmreicha joined the channel
1:26 AM
shaun joined the channel
1:27 AM
mdedetrich has quit
1:27 AM
joefides_ has quit
1:28 AM
kepper joined the channel
1:33 AM
Socket-
whats wrong with this syntax? if [type] == "ocsplog" or [type] == "ejbcalog" {
1:34 AM
mdedetrich joined the channel
1:35 AM
warkolm
looks ok, what are you seeing
1:42 AM
ycombinator has quit
1:43 AM
is-mw2 joined the channel
1:44 AM
Socket-
{:timestamp=>"2015-04-28T21:43:42.228000-0400", :message=>"Error: Expected one of #, } at line 86, column 47 (byte 2931) after filter {\n if [type] == \"rsyslog\" {\n\tgrok { match => [ \"message\", \"%RSYSLOGBASE\" ]"}
1:44 AM
tombar joined the channel
1:44 AM
1:44 AM
logstashbot
Title: Paste #XUL - Apache Paste Bucket (at apaste.info)
1:45 AM
is-mw has quit
1:46 AM
Socket-
having a hard time finding the syntax error
1:54 AM
fev3r101 has quit
1:54 AM
Knuit
warkolm: Thanks, looks like that works. Does greedydata just take the remaining un-matched contents of the line?
1:55 AM
jerryitt has quit
1:56 AM
larivee joined the channel
2:00 AM
dendazen joined the channel
2:00 AM
kepper has quit
2:00 AM
rtoren has quit
2:01 AM
_JZ_ joined the channel
2:07 AM
rtoren joined the channel
2:08 AM
kjstone00 joined the channel
2:09 AM
JempInDaKella has quit
2:10 AM
JempInDaKella joined the channel
2:13 AM
filenox joined the channel
2:14 AM
chenryn joined the channel
2:14 AM
Socket-
I have a syslog listener, it seems LS is able to index the data without me creating a pattern, I want to use a custom pattern which i have created, but i think the default one is getting in the way. How do i tell LS to not run syslog events through %{SYSLOGBASE} before hitting my filter
2:15 AM
russorat has quit
2:18 AM
BaM`
Socket-: you can override the %{SYSLOGBASE} pattern by providing your own with the same name
2:18 AM
filenox has quit
2:18 AM
...or any pattern for that matter
2:19 AM
Socket-
when i do that i get a grok parse error
2:19 AM
BaM`
possible issue with your pattern then?
2:20 AM
Socket-
i'll share
2:20 AM
cpe has quit
2:21 AM
cpe joined the channel
2:24 AM
almost done with paste
2:25 AM
2:25 AM
logstashbot
2:27 AM
Socket-
BaM`: see anything?
2:29 AM
BaM`
pls hold...
2:30 AM
a couple of things stand out
2:30 AM
zebrarage joined the channel
2:30 AM
you need %{RSYSLOGBASE} not %RSYSLOGBASE in your grok match
2:31 AM
Socket-
ohh, thats huge
2:31 AM
thanks, i didnt see that
2:31 AM
BaM`
also your custom pattern is never going to match just the "message" field - it looks like it's trying to match an entire syslog line
2:32 AM
e.g., it's starting with %{SYSLOGTIMESTAMP}
2:32 AM
but you're trying to match "pam_unix(su:session): session opened for user root by dan(uid=0)"
2:33 AM
Socket-
i think i need to match the entire line
2:33 AM
some of my syslog events look like this
2:33 AM
BaM`
timestamp and program etc have already been matched somewhere earlier
2:33 AM
Socket-
<77>Apr 28 16:22:44 nix run-parts(/etc/cron.daily)[7980] finished prelink
2:33 AM
BaM`
ah yep
2:33 AM
Socket-
how do i match the line instead?
2:33 AM
BaM`
well that matches for the sample you just gave me
2:34 AM
nemothekid has quit
2:34 AM
Socket-
or what do you think is the best way to handle these and normal syslog data
2:34 AM
brokencycle has quit
2:34 AM
BaM`
you can either give them different types and let them hit different conditions
2:34 AM
Socket-
yeah, it matches and seems to index everything right, but it still has grok parse tag on it
2:34 AM
BaM`
or you can just have multiple match patterns inside one grok
2:34 AM
if you don't mind the extra overhead of some failing
2:35 AM
russorat joined the channel
2:35 AM
Socket-
Im not sure i follow you, can you break that down differently?
2:35 AM
BaM`
if it reaches the end of a grok without mathing anything, it will get a _grokparsefail
2:35 AM
ok
2:35 AM
do you have different syslog stuff coming from different sources?
2:35 AM
Socket-
they all come from rsyslog remote forwarder
2:36 AM
BaM`
ah I see
2:36 AM
do you know which hosts are sending which syslog formats?
2:37 AM
actually, I have a better plan
2:37 AM
pls hold
2:37 AM
Socket-
all using: RSYSLOG_TraditionalFileFormat
2:37 AM
BaM`
are some in JSON format already though?
2:38 AM
your custom message snippet suggests that
2:38 AM
Socket-
im not sure what causes that
2:38 AM
i think it's auto done with the input maybe?
2:38 AM
rtoren has quit
2:38 AM
BaM`
nah - there are things like severity and facility in there
2:39 AM
so it's either already tagged up when it reaches logstash, or it's hitting another filter somewhere
2:39 AM
Socket-
so, here is a raw syslog event: Apr 27 19:03:34 nix yum[54088]: Updated: dracut-004-356.el6_6.1.noarch