search cancel

Is there an API to export logs for a monitor? V3.

book

Article ID: 257930

calendar_today

Updated On:

Products

CA App Synthetic Monitor

Issue/Introduction

Is there an API to export logs for a monitor? V3.

 

Environment

Release : 99.0

Resolution

 

1) https://api.asm.saas.broadcom.com/v3/#/log/log-get-event

2) Get monitor check status results

3) Get a single event

The Event ID is a date/time of the check on the monitor.  To get this, you would have to 
Use GET /log to get the monitor check results.  At the top of the results (if successful) will be the Event ID


[
  {
    "id": "5cc0e76a-98c7-11ed-9856-3f8f3c99d88d",
    "monitor": {
      "id": "552503",
      "name": "Monitor name"
    },

You then would use the GET /log/{id} and enter the ID from above as a parameter

To download the results, we only download it as a JSON file.  Once downloaded, you can change the extension of the file to csv.  Only caveat is that all the data will be in Column A.  You would need an external tool to fully convert a JSON file to CSV.