Splunk Search

Timechart graph disappears after loading is complete

sangs8788
Communicator

Hi,

Below is my query which shows be the growth of the database in a year

index=db_connect source = "db2*.log" |dedup _time, TBSP_NAME,DB_NAME | stats sum(TBSP_SIZE_BYTES) as "TBSP_SIZE_BYTES" by _time, DB_NAME |eval TBSP_SIZE_BYTES=round(TBSP_SIZE_BYTES/(1024*1024*1024)) | sort DB_NAME | timechart span=1d last(TBSP_SIZE_BYTES) by DB_NAME

What happens here is, there are distinct 3 databases which the growth has to be shown. And the data is available only from Jun 2017. While running the query the data loads for all 3 databases and later on when loading reaches the finish line, the graph of one db just gradually decrease and disappears.

Could you please let me know what could be the reason behind.

The graph is showing if we specify the DB Name directly (only one single db)
Attached is the screenshot of the same.

Thanks

Tags (1)
0 Karma

cmerriman
Super Champion

i'm going to just guess it MIGHT have to do with your sort. quick suggestion, try to remove it or try this: | sort 0 DB_NAME i don't think you really need it, since the timechart will put the DB_NAME into columns and you can order them how you want using fields after the timechart command, and since you're doing a stats by _time and DB_NAME earlier, the results would be sorted ascending and then by DB_NAME
sort has a limit to how many events it can sort, and it might be hitting that limit and truncating the results which might be messing with the timechart when it finalizes.

0 Karma

sangs8788
Communicator

@cmerriman It worked. I removed the sort query. Thanks. Please post it as Answer so that I can accept the same

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!

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas     Cisco Live 2026 is almost here, and this ...

What Is the Name of the USB Key Inserted by Bob Smith? (BOTS Hint, Not the Answer)

Hello Splunkers,   So you searched, “what is the name of the usb key inserted by bob smith?”  Not gonna lie… ...

Automating Threat Operations and Threat Hunting with Recorded Future

    Automating Threat Operations and Threat Hunting with Recorded Future June 29, 2026 | Register   Is your ...