Discussion:
[graylog2] Rest api for Logs
Anant Sawant
2017-02-16 09:34:04 UTC
Permalink
Hi Everyone,

Does any body knows if there is any REST api for graylog to get the logs
based on time? For example api to get logs for last 30 days.
If its not can we directly get the logs form elasticsearch by querying
elaticsearch.?

Thanks in advance

Anant.
--
You received this message because you are subscribed to the Google Groups "Graylog Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to graylog2+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/graylog2/0d0abfef-4074-4632-bdbf-ea53b9bdc17e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Jochen Schalanda
2017-02-16 10:10:15 UTC
Permalink
Hi Anant,

you can query the complete data set over the Graylog REST API, check the
search-related resources in the Graylog API browser at
http://127.0.0.1:9000/api/api-browser (URI might be different for your
setup).

Cheers,
Jochen
Post by Anant Sawant
Hi Everyone,
Does any body knows if there is any REST api for graylog to get the logs
based on time? For example api to get logs for last 30 days.
If its not can we directly get the logs form elasticsearch by querying
elaticsearch.?
Thanks in advance
Anant.
--
You received this message because you are subscribed to the Google Groups "Graylog Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to graylog2+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/graylog2/a0d0adb1-99cd-4ccf-991d-96d1509b8ce6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Continue reading on narkive:
Loading...