Graphs Reference

Use the graph view to graph values in your logs, such as server response times or page sizes. This page provides a detailed reference guide. For a quick introduction, see Graphs. Experienced users of the "Classic" Scalyr UI might also want to check out Introduction to the New Scalyr UI.


The Graph page allows you to plot numeric information from your logs or metrics. For example, you can plot:

  • Response sizes and times from a web access log
  • Execution times from a database query log
  • CPU utilization metrics collected by the Scalyr Agent

You can graph values from an individual log, aggregate multiple servers / logs, and use search terms to select specific log messages to graph.

To graph non-numeric information, such as rate of error messages in an application log, use the Log View. The timeline chart at the top of the log view shows how often matching messages appear in the log.

Creating a Graph

To display a graph:

1. Go to the Log View and search for the log records or metrics you’d like to graph. For instance, to graph response sizes from a web access log, use the Log field to select your web access logs.

2. On the left side of the window, you’ll see a list of fields. Click on the name of the field you’d like to graph, and then click the "Graph Values" button.

Once you’ve entered the graph view, you can refine which log records or metrics are included in your graph.

Graph Functions

Use the checkboxes (1) on the right side of the graph to specify which functions you’d like to plot. You can select one function, or many.

Function Value
Average The average of all values in each time period. For instance, if you are graphing server response times, this will show the average response time.
Minimum The smallest value in each time period.
Maximum The largest value in each time period.
Sum/sec Adds all values in each time period, and divides by the time span. For instance, if you are graphing the response-size field in a web access log, this will give the response bandwidth in bytes per second.
10th %ile Shows the 10th percentile of all values in each time period.
50th %ile Shows the 50th percentile (median) of all values in each time period.
90th %ile Shows the 90th percentile (median) of all values in each time period.
95th %ile Shows the 95th percentile (median) of all values in each time period.
99th %ile Shows the 99th percentile (median) of all values in each time period.
99.9th %ile Shows the 99.9th percentile (median) of all values in each time period.

A percentile is only meaningful if your search matches a large number of events. If there are not enough events to compute a percentile, the corresponding checkbox will be disabled.

If you move your mouse over the graph, the exact value of each selected function is displayed next to that function (2).

Deltas (3) shows information about the slope, or rate of change, of your graph. For instance, if you're viewing a graph of free disk space, the delta tells you how quickly disk space is being consumed.

  • "Change" shows the change in value from one end of the graph to the other.
  • "Change/hour" shows the average change in value per hour.
  • "Change/sec" shows the average change in value per second.

Deltas are computed based on average values in the first and last time periods of the graph, even if you have chosen to display a different function (such as minimum or maximum).

Selecting Time Ranges

You can click and drag in the graph to select a time range. When you do this, the values displayed in the Functions area reflect the time range you’ve selected. For instance, Minimum will show the minimum value in that entire time range, and Deltas reflect the change across the selected time range.

When you have selected a time range, a "Zoom to selection" button will appear. Click this button to zoom in to the selected time range. You can use the browser’s Back button to undo a zoom.

Time Navigation

Click on the time range dropdown (1) to specify the time range to graph.

Click the Older (2) and Newer (3) buttons to move forward or backward one half-graph at a time.

If you’ve specified a relative time range (e.g. "Last 4 hours"), click the Update button (4) to show the latest data. This will refresh your display to reflect the current time. For instance, if you display a graph at 11:23 AM, using the default "Last 4 hours" span, it will show data from 7:23 AM to 11:23 AM. If you then click the Update button at 11:30 AM, your time range will update to show 7:30 AM to 11:30 AM.

Click See Logs (5) to view the raw log messages on which the graph is based.

Time Range Dropdown

The presets (1a) select your most recent data. For instance, select "4 hours" to view data from the last 4 hours.

To specify a custom time range, use the From (1b) and To (1c) fields. These fields are very flexible; you can enter:

  • A time (e.g. 14:30 or 5:05 AM)
  • A date (May 23)
  • A date and time (5/14/2016 2:00 PM)
  • A value like 5h or 2d to indicate "5 hours ago" or "2 days ago".
  • ["To" field only] A value like +30m or +2h to indicate "30 minutes after the From time" or "two hours after the From time".
Scenario Start End
Graph the last hour. 1h or 1 hour
Graph from 5:23 AM this morning 5:23
Graph one hour, beginning at 5:23 AM this morning 5:23 +1h
Graph one hour, beginning at 1:00 PM on April 4th April 4 1:00PM +1 hour
Graph from three days ago to two days ago 3d or 3 days 2d or 2 days

A wide range of date and time formats are supported. See Time Syntax Reference for a complete list.

Filtering Data

Use the Server/Host and Log fields (1) to specify which servers and/or logs you’d like to graph. In the Server/Host field, you can enter the name of a server. You can also use * as a wildcard at the beginning or end (but not the middle) of a name. For instance, enter database* to graph logs from all servers whose name begins with "database". Similarly, use the Log field to enter the name of a log file. If you have files with the same name on different servers, the Log field will select that log across all servers. To select a single log from a single server, fill in both Server/Host and Log.

When you click in the Server/Host or Log field, you will see a list of all available names. You can use the mouse or arrow keys to select an entry from the list. As you begin typing, the list will narrow down to match what you've typed so far. However, your selection in one field does not affect the choices shown in the other field. For instance, if you type the name of a single server, the Log field will still list log files from all servers.

Use the Search field (2) to graph messages containing particular text (e.g. error), or by field values (e.g. status >= 500). See Query Language Reference for a full description of the Scalyr query language.

When you enter a term in the Search field, it's packaged into a "chiclet" (3). You can edit the chiclet by clicking on it, or using the Delete key to move your edit caret back into the chiclet. You can click the "X" icon to delete the entire term.

Breakdown Graphs

Click the "Break Down By" menu to create a breakdown graph. A breakdown graph shows a separate plot for each server. For instance, if you're graphing the number of errors on your site, a breakdown graph will show the number of errors on each individual server. Here is an example:

You can break down by any field, not just server. For instance, when graphing data from a web access log, you could break down by URL or user-agent. The breakdown graph shows a separate plot for each value in the selected field.

To break down by a different field, or to turn off breakdown mode, click the dropdown (1). In this example, the graph (2) has four plots, one for each server. Use the function menu (3) to choose a function, such as Average, Minimum, or Maximum. Use the checkboxes (4) to choose which plots to display.

If there are more than 20 plots (e.g. if you have more than 20 servers), the top 20 will be shown.

Field List

This area lists the fields Scalyr's parser has found in the events or data points matching your search. By default, it shows the most common fields, limited to the number that will fit in your window: "Top Fields" (1). Click the dropdown and switch to "All Fields" to view all fields; then use the Prev/Next (3) buttons to navigate through the alphabetical list. The number next to each field indicates how many distinct values appear in that field (2). (If there are more than a few hundred distinct values, the number shown will be an estimate.)

Click on any field to view the most common values:

The blue bars (1) provide a visual indication of how often each value appears, and the numbers (2) provide a more precise estimate. You can click on a value (3) to restrict your graph to events having that field value.

If the field has too many values to display on one screen, click the "see more" link (4) to display up to 200 values.

For numeric fields, click the "Graph Values" button (5) to switch to a graph of that field.

Action Menu

Click the "hamburger" icon to display actions you can perform on the graph:

  • Personal - add this graph to your saved searches (available in the Search menu at the top of the page).
  • Shared - add this graph to the saved searches available for the entire team.
  • Graph in dashboard - add this graph to an existing dashboard, or start a new dashboard with this graph.
  • Alert - create a new alerting rule, which will trigger if the graph value goes above or below a level you specify.
  • Get link to this graph - coming soon
  • Start new search - takes you back to the Log View to start a fresh search over all of your logs.