Creating a copy of all syslog error records into a custom table using scheduled script execution

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-24-2025 05:46 AM
In short, we want to have a dashboard with reports on errors from syslog. OOTB it's not allowed (nor advised) to do this. So we came up with the solution to copy all the errors in syslog table to a custom table and report on those. We can easily flush this table on a schedule or whenever we need to withouth causing issues.
I've created a Scheduled Script Execution that runs every 1 hour. This script should query all type=error created=last hour records and add those to my custom table. However, the query doesnt seem to be working, and I'm not sure why.
If I comment the query and change the script to just create a single record, it works. So I conclude the issue is with the query.