Skip to main content
Sumo Logic

View Search Results for JSON Logs

If your search returns fields that are valid JSON objects, you can expand or collapse the view on the Messages tab to show or hide the JSON substructure, or present the messages as formatted JSON code.

Expand or collapse JSON messages

By default, the collapsed version of the JSON messages are shown. You can see the top level JSON attributes, and only the attributes below the top that are objects rather than simple values are hidden.

Expand JSON

Click Expand JSON on the upper right side of the message table to hide the structure. You can see the full contents and structure of the log messages.

Collapse JSON

Click Collapse JSON to see the initial collapse view.

Right-click an individual message to see the following options:

  • Copy as JSON. Copies the message to the clipboard. (This function is not available on Safari due to a browser limitation.)
  • Collapse Cell. Collapses the substructure of the selected message.
  • Expand Cell. Expand the substructure of the selected message.

Format JSON messages in search results 

If the messages in your search results can be formatted as JSON, the Messages tab presents the option to display each message in JSON or raw format. Click the link to toggle between the JSON and raw view. 

The view of JSON formatting is limited to JSON files less than 10 KB in size.

View as JSON