Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
20.1 Legacy Series
»
IDS API cant get it to work :(
« previous
next »
Print
Pages: [
1
]
Author
Topic: IDS API cant get it to work :( (Read 1679 times)
Altmana
Newbie
Posts: 8
Karma: 0
IDS API cant get it to work :(
«
on:
June 03, 2020, 11:37:42 am »
Hi,
I am using CURL in Linux, trying to grab the eve.json log via the API.
Following the documentation, I am executing the following command:
curl -k -u "********":"*******"
http://192.168.13.37/api/ids/service/getAlertLogs/
$filedid=
or
curl -k -u "********":"*******"
http://192.168.13.37/api/ids/service/getAlertLogs/
$alertId
But I am getting nothing in return other than:
[{"size":2095025,"modified":"2020\/06\/03 11:36","filename":"eve.json","sequence":null},{"size":19470158,"modified":"2020\/05\/24 22:54","filename":"eve.json.0","sequence":0}]
What am I doing wrong?
Please help me.
Best regards,
Albert
Logged
Altmana
Newbie
Posts: 8
Karma: 0
Re: IDS API cant get it to work :(
«
Reply #1 on:
June 03, 2020, 01:37:35 pm »
curl -k -u "**********":"*************"
http://192.168.13.37/api/ids/service/getAlertinfo/
[$alertid]
Actually gives me one alert, also
curl -k -u "**********":"*************"
http://192.168.13.37/api/ids/service/getAlertinfo/
[$eve.json] gives me the last alert in the log
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
20.1 Legacy Series
»
IDS API cant get it to work :(