axiomhq / cli

The power of Axiom on the command line.
https://axiom.co
MIT License
41 stars 11 forks source link

No way to specify a Unix timestamp as the time format #97

Closed ted-gould closed 3 years ago

ted-gould commented 3 years ago

Probably the most ubiquitous timestamp format in existence.

lukasmalkmus commented 3 years ago

@bahlo Is this something supported by axiom or that should be supported by it?

lukasmalkmus commented 3 years ago

@ted-gould Not that easy to support on the CLI as it would require to parse the input stream of incoming data and translating the timestamp on the specified field into a format supported by Axiom.

lukasmalkmus commented 3 years ago

According to @mhr3 they are supported if no format is explicitly specified and the value in the timestamp field is just a number.

ted-gould commented 3 years ago

Hmm, okay. It does seem to work without specifying the format. I'm not sure how to document that, but it seems like we should tell people its an option because it is very much not clear that you can do it reading the docs on the command line parameters.

So this is probably a documentation bug as much as anything.