Cortex XSOAR: Add a Job: First Friday of the Month

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

Cortex XSOAR: Add a Job: First Friday of the Month

L3 Networker

Hello all

We are using Cortex XSOAR Version Version 6.0.0; Build 79522 and having problems to generate a valid schedule in the Jobs.

I would like to add a Job, which runs on first Firday of the Month.

The Human View part has no Monthly recurring tasks.

The Cron View does not unterstand these settings:

 

0 21 ? * 6#1 -> the background turns red on "Update job"

00 21 1-7 * 5 -> the next Run will be on the 13th of November 2020

 

Can anyone solve this?

thanks

roger

 

 

1 accepted solution

Accepted Solutions

L2 Linker

Hi Roger!

Yes, that's quite a problem!  It looks like Cron doesn't have a good way to identify specifically which week it's running in.  The recommendation would be to run the job weekly but have the first section of your playbook determine if it's within the first 7 days.  You can do that with the GetTime task with the dateFormat = Day.  Something like the following will accomplish that for you:

DougCouch_0-1605660341914.png

I hope that helps!

Thanks!

-Doug

Doug Couch  |  XSOAR Customer Success Engineer - Manager
Palo Alto Networks  |  3000 Tannery Way  |  Santa Clara, CA 95054  

View solution in original post

3 REPLIES 3

L2 Linker

Hi Roger!

Yes, that's quite a problem!  It looks like Cron doesn't have a good way to identify specifically which week it's running in.  The recommendation would be to run the job weekly but have the first section of your playbook determine if it's within the first 7 days.  You can do that with the GetTime task with the dateFormat = Day.  Something like the following will accomplish that for you:

DougCouch_0-1605660341914.png

I hope that helps!

Thanks!

-Doug

Doug Couch  |  XSOAR Customer Success Engineer - Manager
Palo Alto Networks  |  3000 Tannery Way  |  Santa Clara, CA 95054  

As a quick follow up my task is slightly misnamed and should have been "Day of Month"!

Doug Couch  |  XSOAR Customer Success Engineer - Manager
Palo Alto Networks  |  3000 Tannery Way  |  Santa Clara, CA 95054  

Hello

 

Yes, I did it exaclty that way and it works.

 

Thanks

roger

  • 1 accepted solution
  • 3786 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!