Splunk IT Service Intelligence

Chart Split in N days span

sandeepshah81
Explorer

Hi ,

I have a query where I am trying to use Chart funtion to show for a particular application which have multiple versions of the same application installed show number of PC's that particular application got installed with InstallDate field under X-Axis and Y Axis shows the numbers

I am able to acheive it .. But I do not want the field which is in my X-Axis to show fr all the dates, instead it should show in 3 days period like example: X-axis should say 1march, 4march, 7th march and y-axis should say overall sum of the installed count of pc's per application version

|chart count(host) as #Hosts over InstallDate by DisplayVersion

Here InstallDate is my x-axis fields..

0 Karma

vnravikumar
Champion

hi
try like

| eval _time= InstallDate | timechart count(host) as #Hosts span=3d by DisplayVersion
0 Karma

vnravikumar
Champion

if InstallDate is not in epoch convert it and give a try

0 Karma

sandeepshah81
Explorer

It worked to get me that difference like date shows in 3 days gap.. but data under each displayVersion is 0.

0 Karma
Get Updates on the Splunk Community!

Enterprise Security Content Update (ESCU) | New Releases

In the last month, the Splunk Threat Research Team (STRT) has had 2 releases of new security content via the ...

Announcing the 1st Round Champion’s Tribute Winners of the Great Resilience Quest

We are happy to announce the 20 lucky questers who are selected to be the first round of Champion's Tribute ...

We’ve Got Education Validation!

Are you feeling it? All the career-boosting benefits of up-skilling with Splunk? It’s not just a feeling, it's ...