- CheckMates
- :
- Products
- :
- Quantum
- :
- Management
- :
- Re: Create cron job on GAIA
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Are you a member of CheckMates?
×- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Create cron job on GAIA
I would use the following command example to forward firewall logs on CP Management to syslog. However, the fw log command can only specify time range to filter out the logs. How can I setup cron job on GAIA to run the command?
fw log -s "DEC 18 2018 14:00:00" | logger -p local4.info
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You don't need a cron job for this, you need Log Exporter.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dameon is right - but to answer the original question, for cron in WebGUI see e.g. Gaia Administration Guide R80.10 p.111f !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
From the clish command line, I used LogExport as the jobname:
add cron job LogExport command "fw log -s "DEC 18 2018 14:00:00" | logger -p local4.info" recurrence daily time 0:00
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for reply.
I checked the Job Scheduler in Gaia admin guide, the frequency is just daily at most. If I would run the job every 2 hours, shall I create 12 jobs?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
sk77300: How to create a scheduled job (cron job) in Gaia with frequency of less than a day
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
But you still haven't explained why you're doing this versus just using Log Exporter, which is a much better solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am learning the CheckPoint with trial software. Unable to download the LogExporter package.
