deares: if you get empty braces your pattern has matche
s/matche/matched/
otherwise you will get "no matches" or Compile ERROR
5P_0523 with ([0-9][0-9]?[A,P])\_([0-9][0-9][0-9][0-9]) returns {} in grokdebug
dyer has quit
electrical
artbikes: that's because its not a named capture i believe.
fedesilva has quit
artbikes
I've never quite grokked all the options on the debugger screen :)
electrical
can't remember what to add to its a named capture... whack ??
dyer joined the channel
artbikes
if you want to seem some output, use %{NUMBER} instead of [0-9]
mortini
%{WORD}_%{NUMBER} might work better
mortini shrugs
or differently the same anyways
tombar joined the channel
electrical
Btw, the 4 x [0-9] you can also do [0-9]{4}
and the first one can be [0-9]{1,2}
deares has quit
Jahkeup_ joined the channel
(?<name>[0-9]{1,2}?[A,P]\_([0-9]{4})) <-- named capture :-)
SP_0523 works with that
sorry 5P_0523
pasviegas has quit
artbikes notes that for further reference
pasviegas joined the channel
of course when you put it in a patterns file you only need to set the regex in there.
edelschaedel has quit
logstashbot
New news from newjiraissues: Peter Butkovic created LOGSTASH-1015 - Exception in thread "LogStash::Runner" org.jruby.exceptions.RaiseException: (IOError) no !/ in spec <https://logstash.jira.com/browse/LOGSTASH-1015>
Jahkeup_ has quit
electrical
time for me to catch some sleep.. 3:40 am :-)
mortini
later dude
electrical
see you all tomorrow
electrical has quit
stackedsax joined the channel
dreverri has quit
cbarraford|away is now known as cbarraford
whack
Stoosh: the API (much like most things in go's standard library) is awkward and incomplete or generally makes simple things hard.
hazmat: what's missing from go lumberjack - the protocol isn't necessarily complete yet. I also haven't implemented state tracking (recording where in files it's last read from)
Stoosh
whack: fair enough :)
whack
Stoosh: thankfully cgo is super easy so if I really wanted to, I'd just invoke openssl from go instead
Stoosh
yea cgo is pretty nice
whack
by far the best ffi-like api I've used
duck_tape joined the channel
Stoosh: unfortunately there's not too much I like about Go :\