API Search / Messages: Simple search returning (matching) messages only, as CSV

Good day! I’m a novice developer trying to solve a problem: we need to get all messages through an arbitrary search through the API. For example, I specify the MAC address and get all the logs in which it is mentioned. How to do it? It’s on the line: Search / Messages: Simple search returning (matching) messages only, as CSV? What parameters need to be passed?

Hello && Welcome

I might be able to help. With Graylog you can use the REST API browser. This is located System/Nodes/API browser . Looks something like this.

Unfortunately, I haven’t work with API that much to give you a direct answer.

You can find more information here.

https://docs.graylog.org/v1/docs/rest-api

Hope that helps

Edit:

Click on Model Schema and below that ( Red Box) you can add parameter.

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