Dashboards & Visualizations

(search time) extracted field not showing up on the table

Genti
Splunk Employee
Splunk Employee

I have a view (xml) that contains a search. Then i am performing some postprocess and listing the results in a table. Some of the fields are showing up, and one particular one is not. I noticed that this field is a search time extracted field through a props.conf.

Here is a simplified look at my xml:
   <table>
      <title>Result</title>
            <searchPostProcess>| fields _time, host, source, sourcetype, CoreID, date_mday </searchPostProcess>
   </table>

CoreID is a field that is being extracted during search time through a regex. (this shows in a regular search just fine, it just doesnt show in this particular view of mine).

Cheers!

Tags (1)
1 Solution

Genti
Splunk Employee
Splunk Employee

Yeap.
Moreover, it is more efficient to do it that way as well. Here is the final version that actually works:

   <table>
      <title>Result</title>
      <fields>_time, host, source, sourcetype, CoreID, date_mday</fields>
            <searchPostProcess></searchPostProcess>
   </table>

If there are any other postprocess transformation that you wish to do you can continue to do them.

View solution in original post

Genti
Splunk Employee
Splunk Employee

Yeap.
Moreover, it is more efficient to do it that way as well. Here is the final version that actually works:

   <table>
      <title>Result</title>
      <fields>_time, host, source, sourcetype, CoreID, date_mday</fields>
            <searchPostProcess></searchPostProcess>
   </table>

If there are any other postprocess transformation that you wish to do you can continue to do them.

gkanapathy
Splunk Employee
Splunk Employee

If a field is not referenced in the main search, it is likely to be discarded from the results. This is a normal Splunk search optimization. However, since it's gone from the original search results, your postprocess will not be able to use it. You could add a fields command to the original to ensure it keeps any fields you really want later.

Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...