Splunk Search

Can I use search on lookupfields for earliestTime instead of hardcoding them?

manish31383
New Member

Hi

I want to use lookupfield search to extract value for earliesTime and latestTime. Can I use as in example below?





source="dbmon-tail://ABC" FIELD1= $field1$ | timechart max(TOTAL_DELAY_IN_SECONDS)

| inputlookup REGION-TIME | search Field1= $field1$ | fields LIVE_START_TIME

now

MY CHART

line

gaps
default
false
right
log
all

Tags (1)
0 Karma

alacercogitatus
SplunkTrust
SplunkTrust

<earliestTime> is a Splunk time format, so a search cannot be used. However, you could the lookup in the searchString of the chart as a subsearch which restricts the main search.

source="dbmon-tail://ABC" FIELD1=$field1$ [|inputlookup REGION-TIME| search Field1=$field1$ | fields LIVE_START_TIME | rename LIVE_START_TIME as earliest] | timechart max(TOTAL_DELAY_IN_SECONDS)

http://docs.splunk.com/Documentation/Splunk/5.0.5/Viz/PanelreferenceforSimplifiedXML

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...