Knowledge Management

collecting data from kvstore to index

mintucs
New Member

while i am collecting from kv store to index

|inputlookup amkc | collect index="game"

the index having time as current time how could we can sync _time with kv store time field

Tags (1)
0 Karma

somesoni2
Revered Legend

Create a field _time explicitly, and assigned the epoch value of your kv time field.

If your timeField from kvstore is already in epoch format, try like this

|inputlookup amkc | eval _time=timeField | collect index="game"

If your timeField from kvstore is no in epoch format, use strftime function to do so, like this (assuming string time format of field timeField is %Y-%m-%d %H:%M:%S, update the same per your format)

|inputlookup amkc | eval _time=strftime(timeField,"%Y-%m-%d %H:%M:%S") | collect index="game"
0 Karma
Get Updates on the Splunk Community!

Splunk Decoded: Service Maps vs Service Analyzer Tree View vs Flow Maps

It’s Monday morning, and your phone is buzzing with alert escalations – your customer-facing portal is running ...

What’s New in Splunk Observability – September 2025

What's NewWe are excited to announce the latest enhancements to Splunk Observability, designed to help ITOps ...

Fun with Regular Expression - multiples of nine

Fun with Regular Expression - multiples of nineThis challenge was first posted on Slack #regex channel ...