If you're configuring a Script Source and need to specify a frequency that's different than any existing option, you can specify a CRON expression to collect data at a custom frequency.
Sumo Logic supports the Quartz CRON framework.
To use a CRON Expression in a Script Source:
- In Sumo Logic, click the Collectors tab, and then click Add Source for the Collector you choose.
- Select Script for the Source type.
- Enter the source's Name, Description (optional), Source Host, and Source Category.
- For Frequency, choose Other (CRON Expression), then type the expression.
- If you'd like to set a timeout for your script, select Specify a timeout for your command. If you don't need a timeout, or if you're running a script once daily, we recommend that you leave this option deselected. Learn more in Configuring a Script Source.
- For Command, choose the type of command you're going to use. The options in this menu depend on the type of Collector you're using:
Mac/Linux Command options.
Windows Command options.
- For Script, do one of the following:
- Choose Type a path to the script to execute if you have the script saved to a file location. For example:
- OR, choose Type the script to execute if you'd like to enter the script directly in the Sumo Logic Web Application. Then type the script in the text box. For example:
- For Working Directory, you'll only need to enter a path if your script refers to a file indirectly. So, enter the path of the file you'd like to collect if required; otherwise this option can remain blank.
- Under Advanced you'll see options regarding timestamps and time zones:
- Timestamp Parsing. By default Extract timestamp information from log file entries is selected, meaning that Sumo Logic will use the timestamp information from the data you collect. Deselecting this option turns off all timestamp parsing.
- Time Zone. Select an option under Use time zone from log file, but if none present use. Or, if you'd like to override all time zones from data you collect, choose an option under Ignore time zone and instead use.
- For Multiline Processing, by default only Boundary Regex is selected. To make any changes to this setting, select Detect messages spanning multiple lines only if the type of data you're collecting is suited to being collected as multiline log messages.
- If you'd like to filter data being collected, set Filter options. See Create a Processing Rule for more information.
- Click Save to complete the Source setup.