How can we fetch the logs of a particular source using graylog api and which api will be used for that? Please guide me regrading this.
- Did you read through the instructions?
- Did you try anything? You could post what you found to be close and ask for more detailā¦
- You could mention your environment⦠what version of Graylog are you using? The answer might be differentā¦
- It helps to read through this about asking questions in forums.
Generally people in the forums like helping others who have worked at the problem and are stumped ⦠and share their settings⦠and share what they have tried to resolve the problemā¦
I followed up this link and try to fetch the details using api. And i also get the cluster information but didnāt get any specific api to get the logs from a particular source. Kindly guide me to get out of this.
https://archivedocs.graylog.org/en/3.0/pages/configuration/rest_api.html#creating-and-using-access-token
curl -u GM:admin-H āAccept: application/jsonā -X GET āhttp://192.168.1.211:9000/api/clusterā
A quick search of the forums found this post that might give you a start on how to build an API query for what you want.
