OBLYTECH Logo
OBLYTECH Logo

ServiceNow System Logs: Browser, Transactions and Retention

ServiceNow spreads diagnostic records across several logs, so the right one depends on the question you are asking. The system log holds warnings and errors from instance processes, the transaction log records browser activity, and the log file browser searches node files. Each log keeps records for a different period, so check retention first.

Which log answers which question

The System Logs module groups the logs an administrator opens when diagnosing an instance, and each one answers a different question. Name the question first, then pick the log.

Log Question it answers
Transactions What a browser request cost, and which application scope it came from
Email and Push Which notifications left the instance and what became of them
Event Logs Which system events fired, and against which table and record
System Which warnings and errors the platform raised

The system log is the usual starting point, yet it does not replace the transaction record. One user action can leave several system log lines and one transaction record, and the two have to be matched before they explain each other.

Reading system log entries and their levels

Each entry carries a created time stamped in the locale of the machine running the instance, a level, a message, a source and a source package. The source names the process or area involved, such as email or memory. Triage from the source first, because the source shows which process or area owns the message.

Levels describe what kind of event occurred, not whether anyone must act on it. Debug carries detailed output, usually from development or active troubleshooting. Information confirms that an operation finished as expected. Warning marks an unexpected condition in an operation that still completed. Error marks an operation that failed or did not finish as intended. The platform generates the bulk of Error entries, so a high count alone does not necessarily indicate a platform fault. Group the entries by source and check the sources you own first.

Long messages and stack traces are collapsed by default, so expand an entry when you need the full text. Clearing the Active check box on the FormatStackForSyslog client script, found under All > System Definition > Client Scripts, is one way to see unformatted messages.

Pulling older records from the log file browser

Use the log file browser at System Logs > Utilities > Node Log File Browser for any entry older than the current day, since the system log holds the current day. Its filters cover time range, session ID, message text, level, thread name and max rows. A session ID is often the sharpest filter for a user-reported problem, because it isolates one session. Keep the range tight before raising max rows.

Archives follow a separate rhythm. The instance compresses system logs every two days and purges log archives after 21 days. Download an archive from System Logs > Utilities > Node Log File Download by selecting it and clicking Download log under Related Links. Log files belong to the node you are logged into, and System Diagnostics > Stats shows which node that is. A retired node’s logs are purged immediately rather than kept for 21 days, so copy what you need before retiring it.

Tracing a request through the transaction log

The transaction log at All > System Logs > Transactions records browser activity on the instance. Filter it by application scope to narrow the list to one scope. Global-scope transactions show Global in the origin application field.

Response time is the round trip for the application request. Network time is the latency of the network response after the request was made. When response time is high and network time is low, the wait usually sits on the instance, so check SQL count and business rule time next. When network time dominates, the delay more likely lies between the client and the instance. This is a working pattern rather than a rule the platform states, but it narrows the search quickly. For the wider picture of a slow instance, see the slow instance troubleshooting page.

Background and scheduler transactions are recorded when they run longer than 1,000 milliseconds. A short job can finish without leaving a transaction record, so a missing background task should be checked in the records it was meant to change.

The Show Syslog Records button on the Transaction and Active Transaction forms queries the syslog entries written during that transaction. That helps with debugging and with security questions about what a session did.

Measuring time spent in the browser

The Client Transaction Timings plugin extends the server-side records with browser timing. It requires the Response Time Indicator and collects data from Firefox, Internet Explorer and Chrome. After installation, the Client Transactions module under System Logs lists each client-server transaction from the last day.

Client response time runs from the start of the request to the completed load, so it includes server time. The gap between client response and server response shows how much of the wait happened outside the instance. Client network, browser, client script and UI policy times break the rest of the wait into parts.

For a slow form, open the transaction and check the related list at the bottom of the screen. Form rendering appears as ordered operations, each with a type, a name and a duration in milliseconds. List rendering gets no such breakdown, so a slow list calls for the summary fields first.

How long each log record is kept

Two mechanisms manage retention. Table rotation and table extension move older records out of the active tables, while node log files follow their own compression and purge cycle. A record can be gone from one place and still exist in the other. By default, the platform archives these tables on the following schedule:

Table Default schedule Rotations kept
Event [ecc_event] Daily 7
Queue [ecc_queue] Daily 7
Event [sysevent] Daily 7
Log [syslog] Weekly 8
Transaction Log [syslog_transaction] Weekly 8

Daily tables keep about a week of rotations, while weekly tables keep eight rotations and reach further back. An investigation older than a week should start in the syslog tables, because the daily event and queue tables will have rotated past it. Check your instance settings, since these defaults can change. How the archive and cleaner jobs behave in practice is covered on the archiving and table cleaner page.

Email is handled differently. The Email table is not managed by rotation or extension. The Email retention plugin’s default archive rule moves ignored emails older than 365 days into the archive table, and its destroy rule deletes archived email records 365 days after they were archived.

Email and push records as diagnostic trails

Each notification email is stored as an Email record, listed at System Logs > Emails. System mailboxes are filtered views of that table, assigned by type and state. The Type field includes values such as send – failed, send – ignored and sent. The Error String field holds the mail server’s message and is filled when a send fails, so start there when a notification never arrives. For a route through a notification that never arrived, see the guide to email notifications that are not sending.

Push notifications have their own log at System Logs > Push Notifications, which requires the push_admin or admin role. Each record has a request ID, a correlation token much like an email message ID. The Type reads failure, pending or success, and success means the message was sent, though the device may not have received it.

The queue count shows how hard the system tried. A count of zero for longer than expected means no scheduled job is trying to send. When the count reaches ten, the system stops and the type becomes failure.

Protecting log records from tampering

The Protected Tables plugin is controlled by the com.glide.security.protected_table.enabled property. When it is true, changes by higher privilege users to the log tables, including syslog, syslog_transaction, sysevent, sys_audit and sys_push_notification, are checked against each table’s protection level, which can block, log or ignore the attempt. The protected_table_configuration table cannot itself be modified.

The recommended value of com.glide.security.protected_table.enabled is true, and its fallback value is false, so check the current value before relying on the tables. Setting com.glide.security.protected_table.enabled to false switches off the tamper protection on these tables, so treat that as a formal change.

Workflow, configuration and event records

Workflow logging records each activity’s start and end times, its state (Finished, Cancelled, Timed Out or Error), its result and any fault description. The transition history shows when each transition happened and which transition fired.

Configuration logging records inserts, updates and deletes, along with the user, time, table, update set and XML difference. The event log is the sysevent table. It stores each system event by name, with the table and record it applies to. For more on how those events are processed, see the system events and scheduled jobs dashboard page. The Import log records data import activity across the platform. The System Diagnostics application adds an upgrade history and a slow query log.

Frequently asked questions

How long does the system log keep entries?

The system log holds the current day. Syslog and syslog transaction tables rotate weekly and keep eight rotations by default, and node log archives are purged after 21 days.

Why are there so many errors in the system log?

The platform generates the bulk of Error entries, so a high count alone does not necessarily point to a fault. Group the entries by source and look for a repeating pattern in sources you own.

Why is a background job absent from the transaction log?

Background and scheduler transactions are recorded when they run longer than 1,000 milliseconds, so a quick job may leave no transaction record.

Can I view stack traces without collapsing?

Yes. Expand the entry, or have an administrator deactivate the FormatStackForSyslog client script.

Who can open the push log?

Users with the push_admin or admin role can open it. It shows the type, queue count and request ID for each push notification.

For how these records fit into wider monitoring, read the platform performance best practices guide, or return to the platform performance hub to browse the related topics.