I am new to Graylog, and I found that I don’t know how to get a list of sources in Graylog. I discovered that there used to be an API for this, as detailed in https://community.graylog.org/t/get-list-of-all-sources/7670. However, this API no longer exists. So, what is the best practice for using the REST API in Graylog 6.1 to get the names of all sources?
Yes, I have looked into it and tried to request the API mentioned above, but unfortunately, it seems that the API no longer exists. The closest method I can think of to meet my needs at the moment is as follows.
/api/search/aggregate?query=*&groups=source&timerange=1y
However, it doesn’t quite feel like the best practice.
I understand, if that doesn’t work for you then you may need to use another type of software to call the API’s needed.
Not much i can do to help if they removed that API from the list. Just an FYI some members that I know use “postman”
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.