Hey everyone, this isn’t an issue, just asking for assistance to learn API basics… I’m trying to retrieve the events from my Graylog Server with the following command :
curl -u <api_token> -H ‘X-Requested-By: cli’ -H ‘Accept: application/json’ -X POST ‘http://127.0.0.1:9000/api/events/search?pretty=true’
Where my api_token is a token I generated with my superadmin account, who created the alerts and can see the events.
Now is my problem, I don’t understand how to use the model to filter what I want to get. Ideally, I’d like to retrieve the events from the last 10 minutes, with the event message and the source.
Can someone please give me an example ? I think I just need to see what it looks like first, then I’ll be able to adapt myself after.
Thanks!