Dashboards & Visualizations

Getting Regularly distributed X-axis which contains Date (Time) values on it

ameytalkatkar
New Member

Hello Sir/Madam,
I am having "csv" files from where I am importing data to Splunk. This csv file has field "Date" which I want my report to plot on X-axis. Now my query is running fine and displaying report. The "csv" file has data information with 5 mins separation that is each row displays data for 5 mins and so on. Now this file does not contain all the 5-mins data and sometimes some entries are missing for 5-mins. e.g. it may contain below values for Date column:

2012-07-27 06:45:00+00:00, 2012-07-27 06:50:00+00:00, 2012-07-27 06:55:00+00:00, 2012-07-27 07:00:00+00:00, 2012-07-27 07:20:00+00:00, 2012-07-27 07:25:00+00:00, 2012-07-27 07:30:00+00:00, 2012-07-27 07:35:00+00:00, 2012-07-27 07:40:00+00:00, 2012-07-27 07:45:00+00:00

As mentioned here some of the time entries for Date column are missing. Now I want my report to show continuous report i.e. for the time between 2012-07-27 07:00:00+00:00 and 2012-07-27 07:20:00+00:00 it should show break in the graph and but Date information should be present on X-axis. Please note that I am using "line" type of graph in reports.
I hope I am clear here. Any kind of help will really be appreciated.
Thanks Amey

Tags (1)
0 Karma

jonuwz
Influencer

Assuming that _time contains your time values :

putting this after your chart

| makecontinuous _time

usually sorts it out.

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

A Four-Part Event Series: Full Stack Observability For the AI Era

As AI reshapes applications, infrastructure, and the way teams operate, the traditional boundaries of ...

SOC4Kafka - New Kafka Connector Powered by OpenTelemetry

The new SOC4Kafka connector, built on OpenTelemetry, enables the collection of Kafka messages and forwards ...

Event Series: Level up your SOC: Advancing with Splunk Enterprise Security

AI has fundamentally raised the stakes for security operations, and this three-part series is your guide to ...