<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic extract custom filed and display value in the table output in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/extract-custom-filed-and-display-value-in-the-table-output/m-p/494474#M140184</link>
    <description>&lt;P&gt;Query&lt;BR /&gt;
index=java networkenv=prod stackenv=prod source="/opt/jboss/standalone/custom_engine.log"&lt;BR /&gt;
|convert ctime(_time) as time timeformat="%m/%d/%Y %H:%M:%S"&lt;BR /&gt;
|rex field=_raw ""orderEnteredBy":\"(?[^\"]+\")" &lt;BR /&gt;
|table time orderEnteredBy&lt;/P&gt;

&lt;P&gt;It matches the word orderEnteredBy but when i tried to get the name into the table it shows empty.. &lt;/P&gt;

&lt;P&gt;Here is the log&lt;BR /&gt;
availableBalance":{},"projectedBalance":{}}},"productSummary":{"symbol":"RPACX","displayValue":"RPACX","cusip":"32254T759","assetType":"MUTUAL_FUND","description":"UFACRESCENT FUND N/L","settlementDuration":4,"omnibusProduct":true},&lt;STRONG&gt;"orderEnteredBy":"JANEDOE"&lt;/STRONG&gt;,"orderUpdatedBy":"SYS_USER","dirtyFSTT":false,"messagesSummary":{"messagesCount":2,"errorsCount":0,"warningsCount":0,"infosCount":0},"assetType":"MUTUAL_FUND","fundServTransactionTypeDetails":{"cdscValueOverridable":false,"netAssetValue":"NAV_OTHER","rightsOfAccumulation":{"additionalHoldings":0,"manualOverride":false,"additionalHoldingsValid":true}&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 05:22:29 GMT</pubDate>
    <dc:creator>narenpg</dc:creator>
    <dc:date>2020-09-30T05:22:29Z</dc:date>
    <item>
      <title>extract custom filed and display value in the table output</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extract-custom-filed-and-display-value-in-the-table-output/m-p/494474#M140184</link>
      <description>&lt;P&gt;Query&lt;BR /&gt;
index=java networkenv=prod stackenv=prod source="/opt/jboss/standalone/custom_engine.log"&lt;BR /&gt;
|convert ctime(_time) as time timeformat="%m/%d/%Y %H:%M:%S"&lt;BR /&gt;
|rex field=_raw ""orderEnteredBy":\"(?[^\"]+\")" &lt;BR /&gt;
|table time orderEnteredBy&lt;/P&gt;

&lt;P&gt;It matches the word orderEnteredBy but when i tried to get the name into the table it shows empty.. &lt;/P&gt;

&lt;P&gt;Here is the log&lt;BR /&gt;
availableBalance":{},"projectedBalance":{}}},"productSummary":{"symbol":"RPACX","displayValue":"RPACX","cusip":"32254T759","assetType":"MUTUAL_FUND","description":"UFACRESCENT FUND N/L","settlementDuration":4,"omnibusProduct":true},&lt;STRONG&gt;"orderEnteredBy":"JANEDOE"&lt;/STRONG&gt;,"orderUpdatedBy":"SYS_USER","dirtyFSTT":false,"messagesSummary":{"messagesCount":2,"errorsCount":0,"warningsCount":0,"infosCount":0},"assetType":"MUTUAL_FUND","fundServTransactionTypeDetails":{"cdscValueOverridable":false,"netAssetValue":"NAV_OTHER","rightsOfAccumulation":{"additionalHoldings":0,"manualOverride":false,"additionalHoldingsValid":true}&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 05:22:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extract-custom-filed-and-display-value-in-the-table-output/m-p/494474#M140184</guid>
      <dc:creator>narenpg</dc:creator>
      <dc:date>2020-09-30T05:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: extract custom filed and display value in the table output</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extract-custom-filed-and-display-value-in-the-table-output/m-p/494475#M140185</link>
      <description>&lt;P&gt;Somehow the name value is missed from my post&lt;BR /&gt;
|rex field=_raw ""orderEnteredBy":\"(?[^\"]+\")" &lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2020 15:40:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extract-custom-filed-and-display-value-in-the-table-output/m-p/494475#M140185</guid>
      <dc:creator>narenpg</dc:creator>
      <dc:date>2020-05-06T15:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: extract custom filed and display value in the table output</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extract-custom-filed-and-display-value-in-the-table-output/m-p/494476#M140186</link>
      <description>&lt;P&gt;Hi @narenpg,&lt;BR /&gt;
to display code use the Code sample button (the one with 101010)&lt;BR /&gt;
Anyway the correct search should be:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=java networkenv=prod stackenv=prod source="/opt/jboss/standalone/custom_engine.log"
| convert ctime(_time) as time timeformat="%m/%d/%Y %H:%M:%S"
| rex "\"orderEnteredBy\":\"(?&amp;lt;orderEnteredBy&amp;gt;[^\"]*)\""
| table time orderEnteredBy
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can test the regex at &lt;A href="https://regex101.com/r/5D8hAf/1"&gt;https://regex101.com/r/5D8hAf/1&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2020 15:45:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extract-custom-filed-and-display-value-in-the-table-output/m-p/494476#M140186</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-05-06T15:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: extract custom filed and display value in the table output</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extract-custom-filed-and-display-value-in-the-table-output/m-p/494477#M140187</link>
      <description>&lt;P&gt;I did use the regex101 for this.. After using your regex, i am still not seeing the output for the table orderEnteredBy. Do i have to use makeresults&lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2020 15:57:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extract-custom-filed-and-display-value-in-the-table-output/m-p/494477#M140187</guid>
      <dc:creator>narenpg</dc:creator>
      <dc:date>2020-05-06T15:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: extract custom filed and display value in the table output</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extract-custom-filed-and-display-value-in-the-table-output/m-p/494478#M140188</link>
      <description>&lt;P&gt;Oops Sorry it is working... There was a typo.. Thanks a lot&lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2020 15:58:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extract-custom-filed-and-display-value-in-the-table-output/m-p/494478#M140188</guid>
      <dc:creator>narenpg</dc:creator>
      <dc:date>2020-05-06T15:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: extract custom filed and display value in the table output</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extract-custom-filed-and-display-value-in-the-table-output/m-p/494479#M140189</link>
      <description>&lt;P&gt;Hi @narenpg,&lt;BR /&gt;
no makeresuts generates the specified number of search results, you have to use your search,&lt;BR /&gt;
did you're using a Fast Mode or a Verbose Mode?&lt;BR /&gt;
If Fast, try Verbose.&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2020 16:04:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extract-custom-filed-and-display-value-in-the-table-output/m-p/494479#M140189</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-05-06T16:04:47Z</dc:date>
    </item>
  </channel>
</rss>

