Hi, all!

I'm finally done with my Lua decoder and thought I would post a link to it
here, both for any constructive criticism anyone might have and for helping
out anyone who was in the same situation I was in.  Here's the link:

https://gist.github.com/hourback/56e93786df14a17b14da

This was basically born out of the need to parse fractional seconds in the
WebSphere systemout.log files.  Go's time package doesn't recognize
separators that aren't periods.  (There's an open issue for adding support
for commas, at least.)  So I was unable to use PayloadRegexDecoder; I saw
no way to do it other than writing a Lua decoder or a Go decoder.

I'm sure it could have been prettier!

Also, I had to remove the timestamp from the fields table in Lua because it
seemed to cause Elasticsearch to run out of heap.  I'm just starting out
with Kibana and Elasticsearch, so this might have been more apparent to
someone with more experience, but I found it to be difficult to
troubleshoot.

-Ali
_______________________________________________
Heka mailing list
[email protected]
https://mail.mozilla.org/listinfo/heka

Reply via email to