Splunk Search

XML epoch time to time

chevalier51
Loves-to-Learn Lots

I want to extract dailyTime from XML and convert it into time

 

 

<globalView id="108" version="17" recordClassName="NormalizedEvent" retention="0" hourly="-1" hourlyTime="1284336038994" daily="-1" dailyTime="1284336038994" intervalMilliseconds="60000" writeUniqueCountersTime="0">
        <criteria bop="AND">
          <left>
            <expr>
              <interval serialization="custom">
                <com.q1labs.ariel.Interval>
                  <short>5000</short>
                  <boolean>true</boolean>
                  <short>5000</short>
                  <boolean>true</boolean>
                </com.q1labs.ariel.Interval>
              </interval>
            </expr>
            <key class

 

 

Here is my props.conf

 

 

[XMLPARSING]
KV_MODE = xml
SHOULD_LINEMERGE = true
BREAK_ONLY_BEFORE = <globalView\s\w*=("\d\d\d")
MAX_EVENTS = 600 
EXTRACT-dailyTime = ^(?:[^=\n]*=){8}"(\d+)
TIME_FORMAT=%s%3N
TIME_PREFIX=dailyTime=
Lookahead=13
TRUNCATE = 1000
category = Custom
disabled = false
pulldown_type = true

 

 

but splunk is not converting it

Labels (3)
Tags (1)
0 Karma

ashajambagi
Communicator

Hey

try this
TIME_PREFIX=dailyTime\D+

 

0 Karma

chevalier51
Loves-to-Learn Lots

@ashajambagiNo not working

0 Karma

ashajambagi
Communicator

@chevalier51 Epoch converter shows the date to be 2010,try increasing the MAX_DAYS_AGO

 

TIME_FORMAT=%s%3N
TIME_PREFIX=dailyTime\D+
MAX_TIMESTAMP_LOOKAHEAD=13
MAX_DAYS_AGO=5000

 

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Try

TIME_PREFIX=dailyTime="
---
If this reply helps you, Karma would be appreciated.
0 Karma

chevalier51
Loves-to-Learn Lots

@richgalloway No not working

0 Karma

richgalloway
SplunkTrust
SplunkTrust
Did you restart the indexer/HF after changing props.conf? Are you checking new data? Changes to props.conf don't apply to data that's already indexed.
---
If this reply helps you, Karma would be appreciated.
0 Karma

chevalier51
Loves-to-Learn Lots

@richgallowayYes off course

 

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas     Cisco Live 2026 is almost here, and this ...

What Is the Name of the USB Key Inserted by Bob Smith? (BOTS Hint, Not the Answer)

Hello Splunkers,   So you searched, “what is the name of the usb key inserted by bob smith?”  Not gonna lie… ...

Automating Threat Operations and Threat Hunting with Recorded Future

    Automating Threat Operations and Threat Hunting with Recorded Future June 29, 2026 | Register   Is your ...