<?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 Re: Rex field extraction in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/Help-with-rex-field-extraction/m-p/642879#M16295</link>
    <description>&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.4/SearchReference/Spath" target="_self"&gt;https://docs.splunk.com/Documentation/Splunk/9.0.4/SearchReference/Spath&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 10 May 2023 15:52:39 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2023-05-10T15:52:39Z</dc:date>
    <item>
      <title>Help with rex field extraction?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Help-with-rex-field-extraction/m-p/642825#M16290</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I have two events as below. In both the events, data format is different. We can observe extra "/" from few events. How to capture the logEntryType from both of them by using rex command ?&lt;/P&gt;
&lt;P&gt;,\"logEntryType\":\"SUMMARY\",&lt;BR /&gt;,"logEntryType":"Detail",&lt;/P&gt;
&lt;P&gt;Field Name should be "logEntryType" and values should be "SUMMARY" and "Detail".&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2023 22:33:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Help-with-rex-field-extraction/m-p/642825#M16290</guid>
      <dc:creator>Allampally</dc:creator>
      <dc:date>2023-05-10T22:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: Rex field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Help-with-rex-field-extraction/m-p/642830#M16291</link>
      <description>&lt;P&gt;This looks like JSON, the first string being embedded JSON (within another JSON field?) - have you tried using spath to extract the fields (It might need 2 spath's to extract the embedded JSON correctly)?&lt;/P&gt;&lt;P&gt;If you don't want to use spath (for whatever reason), the use of rex can get a little messy&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex max_match=0 "\\\\?\"logEntryType\\\\?\":\\\\?\"(?&amp;lt;logEntryType&amp;gt;[^\"\\\\]+)"&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 10 May 2023 13:04:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Help-with-rex-field-extraction/m-p/642830#M16291</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-05-10T13:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: Rex field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Help-with-rex-field-extraction/m-p/642835#M16292</link>
      <description>&lt;P&gt;I tried using SPATH but didn't work for me. Could you please help me to write two spaths to extract embedded json requests ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2023 13:26:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Help-with-rex-field-extraction/m-p/642835#M16292</guid>
      <dc:creator>Allampally</dc:creator>
      <dc:date>2023-05-10T13:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: Rex field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Help-with-rex-field-extraction/m-p/642837#M16293</link>
      <description>&lt;P&gt;For that I would need an example of your events - please share anonymised version in a code block &amp;lt;/&amp;gt; so that formatting is preserved.&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2023 13:28:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Help-with-rex-field-extraction/m-p/642837#M16293</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-05-10T13:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: Rex field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Help-with-rex-field-extraction/m-p/642851#M16294</link>
      <description>&lt;P&gt;I can't post even sample data here. Is there any link or tutorial to use spath for json requests ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2023 14:18:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Help-with-rex-field-extraction/m-p/642851#M16294</guid>
      <dc:creator>Allampally</dc:creator>
      <dc:date>2023-05-10T14:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: Rex field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Help-with-rex-field-extraction/m-p/642879#M16295</link>
      <description>&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.4/SearchReference/Spath" target="_self"&gt;https://docs.splunk.com/Documentation/Splunk/9.0.4/SearchReference/Spath&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2023 15:52:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Help-with-rex-field-extraction/m-p/642879#M16295</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-05-10T15:52:39Z</dc:date>
    </item>
  </channel>
</rss>

