Getting Data In

All fields not displayed in the result but the event is picked up

ketki
New Member

The following works fine in the search bar.
index=i_a sourcetype=a_out| transaction source maxspan=1h|rex field=source "[\w\W]+/(?[A-Z0-9_]).(?\d)_(?\d*).out" | eval Time=strftime(_time, "%m/%d/%Y %H:%M:%S") | table Job_Name PID Time

Props.conf entry is as follows
[a_out]
TZ = America/New York
TIME_FORMAT = %m/%d/%Y %H:%M:%S
SHOULD_LINEMERGE = False
KV_MODE=none
EXTRACT-sourcefields =[\w\W]+/(?[A-Z0-9_]).(?\d)_(?\d*).out in source
EXTRACT-jobid = JobId=(?\d*)
EXTRACT-batch_type = Batch_Type=(?\w*)

file is of the format - RUN_D_INCR_ABC_INCR_9_TESTF_EXP_C.20130801023732_99999.out.
(JOBNAME.DATE_PROCESSID.OUT)

Problem - The report only displays the Time and doesn’t display jobname/PID.

“View results” from the report is
index=i_a sourcetype=a_out | transaction source maxspan=1h | eval Time=strftime(_time, "%m/%d/%Y %H:%M:%S") | table Job_Name PID Time

0 Karma

lukejadamec
Super Champion

I have seen this before when some of the fields have no value. Try fillnull. Here is a link to fillnull:
http://docs.splunk.com/Documentation/Splunk/5.0.3/SearchReference/Fillnull

0 Karma

lukejadamec
Super Champion

Also, you should use comma separated fields:
Job_Name,PID,Time

0 Karma

linu1988
Champion

Could you get sample logs for us? Are the fields shown when used without transaction?

0 Karma
Get Updates on the Splunk Community!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...