Splunk® Cloud Services

SPL2 Search Reference

Acrobat logo Download manual as PDF


Acrobat logo Download topic as PDF

timechart command overview

The SPL2 timechart command dreates a time series chart with a corresponding table of statistics.

A timechart is a aggregation applied to a field to produce a chart, with time used as the X-axis. You can specify a split-by field, where each distinct value of the split-by field becomes a series in the chart.

Syntax

The required syntax is in bold.

timechart
[sep=<string>] [format=<string>] [partial=<boolean>] [cont=<boolean>] [fixedrange=<boolean>] [limit=<int>]
[agg=<aggregation>] [<bin-options>... ]
( (<single-aggregate> [BY <split-by-clause>] ) | (<eval-expression>) BY <split-by-clause> ) )

You must specify either a <single-aggregate> or an <eval-expression> with a BY clause.


See also

timechart command
timechart command syntax details
timechart command usage
timechart command examples
Functions
Overview of SPL2 stats and chart functions
Related information
timewrap command overview
Last modified on 31 January, 2024
PREVIOUS
thru command examples
  NEXT
timechart command syntax details

This documentation applies to the following versions of Splunk® Cloud Services: current


Was this documentation topic helpful?


You must be logged into splunk.com in order to post comments. Log in now.

Please try to keep this discussion focused on the content covered in this documentation topic. If you have a more general question about Splunk functionality or are experiencing a difficulty with Splunk, consider posting a question to Splunkbase Answers.

0 out of 1000 Characters