blarsen / node-alpine

Alpine - the Apache Log Parser for Node.js
Apache License 2.0
16 stars 6 forks source link

Support ISO-8601 timestamp without brackets #4

Open musicin3d opened 5 years ago

musicin3d commented 5 years ago

Parser requires time to be in brackets. I'm assuming this is a convenient assumption. It makes it easy to find all the data, even if they contain spaces. However, AWS ELB logs use ISO-8601 format without brackets.

Example: 2019-06-29T12:40:00.547997Z

This is a very common, portable, and parsable date format. It should be supported with a new format field.

musicin3d commented 5 years ago

As a workaround, I'm using a parameterized note field to capture this and other unsupported fields. You have to read the source to see how this works.