# Listing all logs path

**URL:** <https://community.graylog.org/t/listing-all-logs-path/7471>\
**Category:** Graylog Central (peer support)\
**Created:** [November 2, 2018, 4:56am UTC](https://community.graylog.org/t/listing-all-logs-path/7471 "2018-11-02T04:56:30Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![merceskoba](https://avatars.discourse-cdn.com/v4/letter/m/57b2e6/32.png) [@merceskoba](https://community.graylog.org/u/merceskoba)\
**Post date:** [November 2, 2018, 4:56am UTC](https://community.graylog.org/t/listing-all-logs-path/7471/1 "2018-11-02T04:56:30Z")

</div>

Hello dear,  
Is it possible to listing all logs path in graylog2 ?  
For example, i will give you screenshot taken from Scalyr  
 ![](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex016/uploads/graylog/original/2X/7/732aa08a252a5057a29a1668739f6bbacf97090c.png)  
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

---

<div class="post-metadata">

**Author:** ![jan](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/jan/32/11_2.png) [@jan](https://community.graylog.org/u/jan)\
**Post date:** [November 2, 2018, 9:18am UTC](https://community.graylog.org/t/listing-all-logs-path/7471/2 "2018-11-02T09:18:09Z")

</div>

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:

```auto
file:\/var\/log\/nginx\/pos\.access\.log 

```

in the search bar.

---

<div class="post-metadata">

**Author:** ![merceskoba](https://avatars.discourse-cdn.com/v4/letter/m/57b2e6/32.png) [@merceskoba](https://community.graylog.org/u/merceskoba)\
**Post date:** [November 2, 2018, 9:24am UTC](https://community.graylog.org/t/listing-all-logs-path/7471/3 "2018-11-02T09:24:38Z")

</div>

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 ?

---

<div class="post-metadata">

**Author:** ![jan](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/jan/32/11_2.png) [@jan](https://community.graylog.org/u/jan)\
**Post date:** [November 2, 2018, 10:05am UTC](https://community.graylog.org/t/listing-all-logs-path/7471/4 "2018-11-02T10:05:43Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![merceskoba](https://avatars.discourse-cdn.com/v4/letter/m/57b2e6/32.png) [@merceskoba](https://community.graylog.org/u/merceskoba)\
**Post date:** [November 2, 2018, 10:13am UTC](https://community.graylog.org/t/listing-all-logs-path/7471/5 "2018-11-02T10:13:41Z")

</div>

Do you know which one should be use ?  
[https://discover.logs.ovh.com/api/api-browser](https://discover.logs.ovh.com/api/api-browser)

For example, `StaticFields : Static fields of an input`

---

<div class="post-metadata">

**Author:** ![jan](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/jan/32/11_2.png) [@jan](https://community.graylog.org/u/jan)\
**Post date:** [November 2, 2018, 11:29am UTC](https://community.graylog.org/t/listing-all-logs-path/7471/6 "2018-11-02T11:29:32Z")

</div>

I would use: [https://discover.logs.ovh.com/api/api-browser#!/Search/Relative/searchRelativeChunked\_get\_0](https://discover.logs.ovh.com/api/api-browser#!/Search/Relative/searchRelativeChunked_get_0)

---

<div class="post-metadata">

**Author:** ![merceskoba](https://avatars.discourse-cdn.com/v4/letter/m/57b2e6/32.png) [@merceskoba](https://community.graylog.org/u/merceskoba)\
**Post date:** [November 2, 2018, 11:00pm UTC](https://community.graylog.org/t/listing-all-logs-path/7471/7 "2018-11-02T23:00:38Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jan](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/jan/32/11_2.png) [@jan](https://community.graylog.org/u/jan)\
**Post date:** [November 4, 2018, 6:43pm UTC](https://community.graylog.org/t/listing-all-logs-path/7471/8 "2018-11-04T18:43:55Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/3X/c/7/c7c09c6b5099570133d6502b83f50ba4430de5b6.png) [@system](https://community.graylog.org/u/system)\
**Post date:** [November 18, 2018, 6:44pm UTC](https://community.graylog.org/t/listing-all-logs-path/7471/9 "2018-11-18T18:44:08Z")

</div>

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