Listing all logs path

(Merces) #1

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 Doberstein) #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:


in the search bar.

(Merces) #3

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 Doberstein) #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.

(Merces) #5

Do you know which one should be use ?

For example, StaticFields : Static fields of an input

(Jan Doberstein) #6

I would use:!/Search/Relative/searchRelativeChunked_get_0

(Merces) #7

could you give me the example for using it ?
The endpoint is /search/universal/relative/ right ?
there are query, range, and fields…

(Jan Doberstein) #8

I do not know your data - I did not have access to your data.

(system) #9

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.