Splunk Search

Timechart add value that doesn't appear in log

gnoellbn
Explorer

Hello,

I'm trying to add a value to my timechart which doesn't appear in my log.

That search gives me my graph but I would like to add a field "MaxQuota" equals to 5

index=_internal source="/opt/splunk/var/log/splunk/license_audit.log" | timechart values(quotaExceededCount) |

Does anyone now how to do this ?

Thanks

Tags (1)
0 Karma
1 Solution

gfuente
Motivator

Hello

Just try this:

index=_internal source="/opt/splunk/var/log/splunk/license_audit.log" | eval MaxQuota="5" | timechart values(quotaExceededCount), last(MaxQuota)

This will give you a horizontal line in the chart as well as your previous data.

regards

View solution in original post

gfuente
Motivator

Hello

Just try this:

index=_internal source="/opt/splunk/var/log/splunk/license_audit.log" | eval MaxQuota="5" | timechart values(quotaExceededCount), last(MaxQuota)

This will give you a horizontal line in the chart as well as your previous data.

regards

gfuente
Motivator

Easy one 🙂

0 Karma

gnoellbn
Explorer

that's simple enough, I though "eval" would only take actual fields
thanks a lot 🙂

0 Karma
Get Updates on the Splunk Community!

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...