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
Get Updates on the Splunk Community!

What the End of Support for Splunk Add-on Builder Means for You

Hello Splunk Community! We want to share an important update regarding the future of the Splunk Add-on Builder ...

Solve, Learn, Repeat: New Puzzle Channel Now Live

Welcome to the Splunk Puzzle PlaygroundIf you are anything like me, you love to solve problems, and what ...

Building Reliable Asset and Identity Frameworks in Splunk ES

 Accurate asset and identity resolution is the backbone of security operations. Without it, alerts are ...