Schedule a Report Examples - Administrator Guide - 8 - Cortex XSOAR - Cortex - Security Operations

Cortex XSOAR Administrator Guide

Product
Cortex XSOAR
Version
8
Creation date
2023-11-02
Last date published
2024-02-22
Category
Administrator Guide
Abstract

Examples of scheduling a Cortex XSOAR report using Cron expressions. Cron scheduler format.

The following examples describe how to schedule a report using the Cron scheduler format. The Cron time string format consists of five fields that Cron converts into a time interval. For example, a Cron string of 0 10 15 * * runs a report on the 15th of each month at 10:00 am.

Schedule a report starting January 1 and then monthly

In this example, you want to schedule a report on January 1, 2020 at 0800 (8:00 am) and thereafter on the 1st of each month.

In the Cron Expression field, type 00 8 1 1/1 *

Number

Description

00

00 in minutes

8

8am

1

The first of each month

1/1

Starting in January, and every month thereafter. If you want the report to start on a different month, change 1/1 to the relevant month, such as 2/1 for February, 3/1 for March and so on.

*

Any day of the week

The reports run at 8am on January 1, 2020, February 1, 2020, March 1, 2020 and so on.

Note

Cron calculates the next relevant date. If you want the report to run next month, provided that date has passed in the current month, you do not need to specify the month. For example, assume the date is December 12. To run the report on January 11 at 8:00 am, type 00 8 11 * *. The report starts running on January 11 (and on 11th of each month thereafter). If the current date is December 10, the next run date would be December 11.

Schedule a report for once a year

In this example you want to schedule a report on January 6, 2020 at 0800 (8:00 am) and every year on January 1 (the current date is Thursday 12 December 2019).

In the Cron Expression field, type 00 8 1 1 *

Number

Description

00

00 minutes

8

8am

1

1st day of each month

1

Starting every January. For different months change the number

*

Any day of the week

The report runs at 0800 on January 1, 2020, January 1, 2021, January 1, 2022, etc.

Schedule a report every week on a Monday

In this example, you need to schedule a report at midnight every week on a Monday (the current date is Thursday, 12 December 2019)

Type the following expression in Cron: 00 0 * * 1

Number

Description

00

00 in minutes

0

Midnight

*

Any day

*

Any month

1

Monday

The report runs on the first available Monday December 16 at midnight, and on December 23, December 30, January 6, etc.

Schedule a report every weekday from February for 6 months

In this example, you need to schedule a report at 1730 (5:30 pm) every weekday (Monday - Friday) starting in February for 6 months (assume the current date is Thursday December 12, 2019).

In the Cron Expression field, type 30 17 * 2/6 1-5

Number

Description

30

30 minutes

17

5pm

*

Any day

2/6

Starting in February for the next 6 months.

1-5

Monday to Friday

The report runs at 1730 (5:30 pm) on February 3, 4, 5, 6, 7, etc.

Schedule a daily report

In this example, you need to schedule a report every day at 0600 (6:00 am) (the current date is Wednesday 12 December).

In the Cron Expression field, type 0 6 * * *

Number

Description

00

00 in minutes

6

6am

*

Any day

*

Any month

*

Any day of the week. If you want to run from Monday to Friday, type 1-5. For Sunday to Thursday, type 0-4.

The report runs at 0600 (6:00 am) on December 13, 14, 15, 16 and so on.