axiomhq / cli

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

Examples erroneously suggest nginx log ingestion possible #146

Closed popey closed 1 year ago

popey commented 1 year ago

Green user, trying axiom cli for the first time. Goal was to ingest nginx logs.

Googled "axiom nginx logs" which led to a first-party blog post from March 2021. It suggests nginx logs can be directly ingested into axiom cloud.

# Ingest the contents of all files inside /var/logs/nginx
# with extension ".log" into a dataset named "nginx-logs":
$ axiom ingest nginx-logs -f /var/logs/nginx/*.log

This does not work.

axiom ingest mastodon -f /var/log/nginx/access.log
Error: could not detect "/var/log/nginx/access.log" content type: cannot determine content type

We should probably:

And separately:

ImLunaHey commented 1 year ago

@lukasmalkmus missed one https://axiom.co/docs/reference/cli

EXAMPLES
  $ axiom auth login
  $ axiom version
  $ cat /var/log/nginx/*.log | axiom ingest nginx-logs
popey commented 1 year ago

Thanks @ImLunaHey - I've made a PR to fix this.