Using time in lookups

A temporal lookup is used to enrich events based on when the event happened. To accomplish this, we specify the beginning of a time range in the lookup source and then specify a format for this time in our lookup configuration. Using this mechanism, lookup values can change over time, even retroactively.

Here is a very simple example to attach a version field based on time. Say we have the following CSV file:

sourcetype,version,time 
impl_splunk_gen,1.0,2012-09-19 02:56:30 UTC 
impl_splunk_gen,1.1,2012-09-22 12:01:45 UTC 
impl_splunk_gen,1.2,2012-09-23 18:12:12 UTC 

We then use the lookup configuration in transforms.conf to specify which field in our lookup will be tested against the time in each event and what the format ...

Get Implementing Splunk 7 - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.