- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
11-21-2024 01:33 AM
How can we set the preprocess rule to drop any incidents created by schedule jobs?
For example: any incident category=job and some incident field like description contains "False". The playbook in schedule Job, will run some tasks and condition and will mark the incident description with "False" if that incident is False and need to be dropped by pre-process rule.
Thank you
11-21-2024 01:47 AM
@assubramania wrote:
How can we set the preprocess rule to drop any incidents created by schedule jobs?
For example: any incident category=job and some incident field like description contains "False". The playbook in schedule Job, will run some tasks and condition and will mark the incident description with "False" if that incident is False and need to be dropped by pre-process rule.
Thank you
Hello,
To set a preprocess rule in ADF V2 to drop incidents created by scheduled jobs, you can create a rule that checks the incident category and description fields. Here's a concise comment:
"Create a preprocess rule to drop incidents where category='job' and description contains 'False'."
Best Regards,
James Keen
11-21-2024 06:27 AM
Hello @assubramania,
This is not possible and it is by design, based on the definition of the incident lifecycle in XSOAR, as described here.
Pre-processing rules are intended to perform certain actions and validations before incidents are ingested or created in XSOAR, with the purpose of controlling whether they will be dropped, linked or closed, depending on these validations.
Incidents created from jobs, whether they are time-triggered or feed-triggered, are purposedly created and therefore pre-processing rules don't apply to them.
If you're looking to delete incidents created from jobs, you can create a clean-up job that runs every 3 or 6 months, and that job will go back in time and retrieve all incidents created by jobs with description "False" or any other condition. The playbook for this clean-up job can be very simple, with just a few tasks, including a task with the command DeleteIncidentsByQuery, which will delete past incidents based on a query. This automation requires to have an instance of Core Rest API integration enabled.
Let me know if you have any questions.
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!