Skip To Content

Work with logs

When you review logs, you can identify errors, troubleshoot problems, and address deployment issues. In ArcGIS Monitor, you can view, query, configure, and delete logs.

The following sections describe the logs and how to work with them to address issues:

Capture, query, and view log entries

When an event occurs, the event is captured and recorded in the logs. You can query the logs to view messages associated with the event.

To query and view log entries, complete the following steps:

  1. Access Monitor if necessary.

    The Home page appears.

  2. Click Administration.

    The Administration page appears.

  3. Click the Logs tab.

    The Logs page appears with a table of log entries sorted chronologically.

  4. Optionally, do any or all of the following:
    • Click Sort and change the sorting method.
    • Click Filter and create a query to filter the list.
    • Click Columns and specify the columns to hide or show.
    • Position the pointer at the edge of a column's header and drag the column's edge to resize it.
    • Click Refresh and refresh the list of log entries and show new log entries.
    • Type a keyword in the Search by log message text box to search for specific events.
  5. Click View details next to the time of the log entry that you want to view.

    The Log details dialog box appears with detailed information about the log entry.

All events record information, such as the log code, log level, the time the event occurred, the log message, the resource that logged it, the Monitor Server or Monitor Agent machine on which the event occurred, the username associated with the event, and so on. All of this information can help you troubleshoot a deployment.

Learn more about information recorded in log entries

Understand the logs

All events record information, such as the log level, the time the event occurred, the resource that logged it, and the Monitor Server or Monitor Agent machine on which the event occurred. All of this information can help you troubleshoot a deployment.

The Level, Time, Resource, and Message properties are displayed in the log table. To show or hide log table columns, click Columns.

Tip:

To sort, filter, reorder, and hide columns, click the column header in the log table.

The log properties are described in the subsections below.

Code

The log codes associated with the message are organized into several categories that generally describe the message.

Level

Logged events can vary in their level of detail from Severe, which indicates a problem that requires immediate attention, to Verbose, which is a detailed, informative message generated through the regular use of Monitor.

Note:

The frequency of log messages increases as you increase the level of detail; for example, more messages are logged at the Fine level than at the Severe level.

It's recommended that you keep the log level at Severe, Warning, or Info, except when you need to increase the log level for troubleshooting purposes.

The table below lists the log levels:

Log levelDescription

Severe

Serious problems that require immediate attention. This level only includes severe messages.

Warning

Moderate problems that require attention. This level also includes severe messages.

Info

Common administrative messages, including messages about resource events and general configuration. This level also includes severe and warning messages.

Fine

Common messages such as names of operation requests received. This level includes severe, warning, and info messages.

Verbose

Messages providing more detail about how the server fulfills an operation, such as noting specific resources used, how quickly an action took place, and other supporting details. This level includes severe, warning, info, and fine messages.

Debug

Lengthy, detailed messages designed for developers and support technicians who want a better understanding of the deployment’s state when troubleshooting. It's recommended that you don't use this level in a production environment because it may cause a decrease in performance. If you're not troubleshooting an issue, use the Warning level instead.

Time

The time the logged event occurred is noted. Events are organized chronologically, with the most recent event displayed first. Click the Time column header to sort messages in ascending or descending order.

Details

Additional details about the logged event are provided.

Message

The informative message that describes the logged event is noted.

Resource

The resource that generated the logged event is noted. Resources are named according to the specificity of the event. For example, an event related to all observers contains the observers resource, and an event related to a specific observer includes its ID—for example, observers:995a292b-29a8-4282-9807-2043885e3f63.

Client IP

The originating IP address of the client associated with the event is noted if applicable.

Machine

The Monitor Server or Monitor Agent machine from which the logged event originated is noted.

Payload

Supporting data related to the event is provided when it's applicable to the event.

Process

The machine process ID that logged the event is noted.

Time elapsed

The time it took for the logged event to complete is displayed in milliseconds, for example, the amount of time it took to process an API request.

Trace ID

The unique ID that is attached to an event, which may include related events, is noted. This is carried throughout the life cycle in the system and may be used to relate multiple log entries.

Username

The name of the user who submitted the request resulting in the logged event is noted. This property is useful for tracking individual user activity.

Use log filters

Events vary in their level of detail from Severe, which indicates a problem that requires immediate attention, to Verbose, which is a detailed, informative message generated through the regular use of Monitor. To narrow events and display relevant messages, you can create a query to filter the logs. You can combine these filters as part of a query. To access the filters, click Filter on the Logs page, or click a log table column header and click Filter by field.

To create a query that filters the log table to warning events for observers, complete the following steps:

  1. Access Monitor if necessary.

    The Home page appears.

  2. Click Administration.

    The Administration page appears.

  3. Click the Logs tab.

    The Logs page appears with a table of log entries sorted chronologically.

  4. Click the Level column header in the log table and click Filter by field.

    The Filter dialog box appears with a new rule created for the Level field.

  5. Click the Select drop-down arrow in the Filter dialog box and click Warning.

    The log table is filtered and only contains warning level log entries.

  6. Click Rule in the Filter dialog box.

    A new rule is added to the filter.

  7. Click the Select a field drop-down arrow and click Message.
  8. Click the operator drop-down arrow for the message rule and change the value from is to contains.
  9. Click Source type: Choose value Source type: Choose value for the message rule and click Enter value.
  10. Type Observer in the message rule text box.

    The log table is filtered and only contains warning level log entries that contain Observer in the message field.

    Tip:

    To show new log entries that match the filter query, click Refresh.

  11. Close the Filter dialog box to view the log entries.
  12. When you're finished viewing the filtered log entries, click Filter and click Clear all on the Filter dialog box to show all log entries.

Page through logs

The log table shows up to 20 of the most recent log entries by default. If there are more than 20 log entries, you can display more results per page by clicking the Showing 20 items per page drop-down arrow located below the log table.

If there are multiple pages of results, use the pager located below the log table to page to the next or previous set of log entries. When paging through records, the log table does not automatically update to account for new entries that may have been logged. Click Refresh on the Logs page to obtain the most recent log entries.

Delete logs

When debugging a specific scenario that causes issues with a deployment, deleting the logs can help isolate the issue. For example, if you're attempting to determine the cause of an observer error, you can delete the log, run the observer on demand, and refresh the log table to display the observer event. This clears the log of all other events, allowing you to focus on debugging the observer.

To delete all log entries for each Monitor Server and Monitor Agent machine in a deployment, complete the following steps:

  1. Access Monitor if necessary.
  2. Click Administration.

    The Administration page appears.

  3. Click the Logs tab.

    The Logs page appears with a table of log entries sorted chronologically.

  4. Click Delete all.

    A confirmation message appears.

    Caution:

    Deleting log entries is permanent and can't be undone.

  5. Click Delete all.

    All Monitor Server and Monitor Agent log entries are deleted.

Related topics