Enhanced Security Measures in Place:   To ensure a safer experience, we’ve implemented additional, temporary security measures for all users.

Generating reports through automation

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

Generating reports through automation

L3 Networker

Hi everyone,

 

In our environment, we are supposed to generate reports through playbooks since we want to be able to customize the template according to the incident type. Executing the report is simple but downloading is not that simple.

 

I am following the api documentation https://docs-cortex.paloaltonetworks.com/r/Cortex-XSOAR-API/ here

/report/{id}/{requestId}/execute

/report/{id}/latest

I am trying to download the latest report but it won't download unless I give it the full file name as

/report/criticalAndHighIncidentsReport/latest/report_Critical_and_High_incidents_1691757152936982691.pdf

 

 

I am not sure if I am missing something here. How can I download the latest report without having to provide the file name? The file name here appears to be downloaded right away on the UI but this piece of information is not available in the api.

 

1 accepted solution

Accepted Solutions

L5 Sessionator

Hi @EnesOzdemir, If you go down the API route, you will need to grab the file from the filesystem or you can return the file object to the warroom. Before I suggest solution for this method, have you tried using the OOTB command like 

 

!GenerateSummaryReports ids=<incidentID> type=pdf name=<template>

!GenerateInvestigationSummaryReport

!generateGeneralReport

!generateSummaryReport

 

I think they all do the same thing. But have you tried these, you can specify the template name. Once the report is ready it will be added to the context. 

View solution in original post

3 REPLIES 3

L3 Networker

forgot to mention the error I get from executing /report/criticalAndHighIncidentsReport/latest

 

 

{"id":"errDownloadLatestReport","status":400,"title":"Failed to download latest report","detail":"Failed to download latest report","error":"","encrypted":false,"multires":null}

 

L5 Sessionator

Hi @EnesOzdemir, If you go down the API route, you will need to grab the file from the filesystem or you can return the file object to the warroom. Before I suggest solution for this method, have you tried using the OOTB command like 

 

!GenerateSummaryReports ids=<incidentID> type=pdf name=<template>

!GenerateInvestigationSummaryReport

!generateGeneralReport

!generateSummaryReport

 

I think they all do the same thing. But have you tried these, you can specify the template name. Once the report is ready it will be added to the context. 

L3 Networker

@jfernandes1 genarateGeneralReport works thank you 🙂

 

  • 1 accepted solution
  • 1781 Views
  • 3 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!