All Apps and Add-ons

Splunk License Usage Reports

dolejh76
Communicator

I submitted a support request for this but perhaps someone can help me before they respond....

End goal -

Weekly emailed report that shows total license usage per day. I found this report under the deployment monitor that is close to what I would like "Daily Usage for Last 60 Days"

However when I view this report under Settings > "Searches, reports and Alerts" > Daily License Usage by Pool - last 60 days > Run - the date field is incorrectly displayed. Would like to attach image of this but I guess I need more karma...

The day field just has the numbers... 1418968800, 1419055200 etc... assuming it is a formatting issue??

Deployment monitor v 5.0.4
Splunk V 6.2.0

Thanks!
John

0 Karma
1 Solution

Raghav2384
Motivator

Time is in epoch. use strftime command with %m-%d-%y %H:%M:%S as argument.

Example: Let's say the field xyz has the values 1418968800, 1419055200 etc..

use ....|eval Time = strftime(xyz,"%m-%d-%y %H:%M:%S"). Also, with 6 and above versions of Splunk, you have the license monitor embedded which should give you searches to tweak as per your needs.
Hope this helps.
Thanks,Raghav

View solution in original post

0 Karma

Raghav2384
Motivator

Time is in epoch. use strftime command with %m-%d-%y %H:%M:%S as argument.

Example: Let's say the field xyz has the values 1418968800, 1419055200 etc..

use ....|eval Time = strftime(xyz,"%m-%d-%y %H:%M:%S"). Also, with 6 and above versions of Splunk, you have the license monitor embedded which should give you searches to tweak as per your needs.
Hope this helps.
Thanks,Raghav

0 Karma

dolejh76
Communicator

This didn't work exactly but it pointed me in the right direction. Thanks!

Used |fieldformat day = strftime(day, "%b %d, %Y")

dm_license_summary_10m_by_pool | bucket _time as day span=d | eval gb=mb/1024 | stats sum(gb) as gb by pool, day | eval gb=round(gb,2) | fieldformat day = strftime(day, "%b %d, %Y")

0 Karma
Get Updates on the Splunk Community!

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...