logdna / logdna-cli

The LogDNA CLI allows you to signup for a new account and tail your server logs right from the command line.
https://logdna.com
MIT License
27 stars 21 forks source link

Search returns nothing, even if the data is there #14

Closed croqaz closed 5 years ago

croqaz commented 6 years ago

logdna search -l info,warn,error -n 25 -a myapp search finished: 0 line(s). hosts: all. apps: spartan. levels: info,warn,error. query: none Query returned no lines.

http GET https://api.logdna.com/v1/export from=="$(($(date +%s)-86400))" size==25 apps==myapp authorization:"Basic XXX"

logdna --version 1.2.2

This returns the data.

Note: The data cannot be seen in the Web Dashboard!!

croqaz commented 6 years ago

Update: It's because of the META. I'm sending the data from the Python lib, using:

log.info("Blah blah", {'index_meta': True, 'meta': {'whatever': 'yes'}}

All the logs get destroyed ...

smusali commented 5 years ago

@croqaz , can you confirm whether it is still an issue?

smusali commented 5 years ago

Since it was tested in #21 and proven that it works well, I am closing this issue!