03-May-2023 05:53 - edited 04-May-2023 00:04
Hi All,
I am trying to fetch the logs using F5 Rest API, but when I ran the query with filter range:
curl -sku admin:admin@123 -H "Content-Type: application/json" -X GET https://192.168.0.153/mgmt/tm/sys/log/ltm/stats?options=range,2023-02-21T13:48:34Z,lines,1000
I get 400 error:
[{"code":400,"message":"No log message found that matches query. File may be empty\n","errorStack":[],"apiError":3}]
Wanted to know the exact meaning of this error, is there any documentation for the F5 API Error messages.
03-May-2023 06:28
Hi,
Can you add "/stats" to the end of the command and try?
curl -sku admin:admin@123 -H "Content-Type: application/json" -X GET https://192.168.0.106/mgmt/tm/sys/log/ltm/stats
K41550738: Viewing BIG-IP log files using the iControl REST API
https://my.f5.com/manage/s/article/K41550738
03-May-2023 06:32 - edited 03-May-2023 06:33
I have tried this command with /stats as well, still getting the same error
I get the error only for few log types.
03-May-2023 08:33
@srinidhi12 You might consider validating the user password and permissions. If you believe it to be correct I would create a new local user with the appropriate permissions and run the command with that users credentials.
03-May-2023 08:36
I have tried by creating new user with proper permission to access the logs. I have also tried with admin role which has all the permissions. But I get this error for few log types and not for other log types
08-May-2023 18:41
Did you check over on my.f5 ?