Hello dear,
Is it possible to listing all logs path in graylog2 ?
For example, i will give you screenshot taken from Scalyr
As you can see, there are /var/log/nginx/pos.access.log
, /var/log/nginx/pos.error.log
, etc…
In graylog2, how do i do that ? I have deploy the collectors to all servers.
Thank you very much for your time
jan
(Jan Doberstein)
November 2, 2018, 9:18am
2
if you have the information shipped to Graylog what the source file is - by default does filebeat that - then you can search/show the content only from that specific file like:
file:\/var\/log\/nginx\/pos\.access\.log
in the search bar.
could i use Graylog API ?
I have log lists in scalyr. Now, i would like to ensure all of them is listed in Graylog also
or any idea or should i check one by one ?
jan
(Jan Doberstein)
November 2, 2018, 10:05am
4
sure you can query that by API.
Or you create a quick value widget of the field that contains the file name and check that generated list.
Do you know which one should be use ?
https://discover.logs.ovh.com/api/api-browser
For example, StaticFields : Static fields of an input
jan
(Jan Doberstein)
November 2, 2018, 11:29am
6
could you give me the example for using it ?
The endpoint is /search/universal/relative/ right ?
there are query, range, and fields…
jan
(Jan Doberstein)
November 4, 2018, 6:43pm
8
I do not know your data - I did not have access to your data.
system
(system)
Closed
November 18, 2018, 6:44pm
9
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.