<?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: Feild extraction using regex in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Field-extraction-using-regex/m-p/697909#M237053</link>
    <description>&lt;P&gt;Actually, it looks like some horribly disfigured json. It's twice escaped "-&amp;gt;\"-&amp;gt;\\\"&lt;/P&gt;&lt;P&gt;It might be smart to look into the ingestion process and try to optimize it.&lt;/P&gt;</description>
    <pubDate>Sun, 01 Sep 2024 17:52:47 GMT</pubDate>
    <dc:creator>PickleRick</dc:creator>
    <dc:date>2024-09-01T17:52:47Z</dc:date>
    <item>
      <title>Field extraction using regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-extraction-using-regex/m-p/697867#M237038</link>
      <description>&lt;P&gt;&amp;nbsp;Hi All,&lt;/P&gt;&lt;P&gt;Can anbody help us with the Regex expression to extract the feild of Channel: values will be either APP or Web which was highlighted in Sample logs below.&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Sample Log1:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;\\\&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:\\\&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;8E4B3815425627\\\&lt;/SPAN&gt;&lt;SPAN&gt;",&lt;/SPAN&gt;&lt;SPAN class=""&gt;\\\&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;channel\\\&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:\\\&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;APP&lt;/STRONG&gt;\\\&lt;/SPAN&gt;&lt;SPAN&gt;"}&lt;/SPAN&gt;&lt;SPAN class=""&gt;\&lt;/SPAN&gt;&lt;SPAN&gt;"","&lt;/SPAN&gt;&lt;SPAN class=""&gt;call_res_body&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;{},&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sample Log2:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;4GksYUB7HGIfhfvs_iLtSc8EFCzOzbAJBze8wjXSDnwmgdhwjjxjsghqsxvhv\\\&lt;/SPAN&gt;",&lt;SPAN class=""&gt;\\\&lt;/SPAN&gt;"&lt;SPAN class=""&gt;channel\\\&lt;/SPAN&gt;"&lt;SPAN class=""&gt;:\\\&lt;/SPAN&gt;"&lt;SPAN class=""&gt;&lt;STRONG&gt;web&lt;/STRONG&gt;\\\&lt;/SPAN&gt;"}&lt;SPAN class=""&gt;\&lt;/SPAN&gt;"","&lt;SPAN class=""&gt;call_res_body&lt;/SPAN&gt;"&lt;SPAN class=""&gt;:&lt;/SPAN&gt;{},"&lt;SPAN class=""&gt;additional_fields&lt;/SPAN&gt;"&lt;SPAN class=""&gt;:&lt;/SPAN&gt;{}}&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 01 Sep 2024 19:34:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-extraction-using-regex/m-p/697867#M237038</guid>
      <dc:creator>dinesh001kumar</dc:creator>
      <dc:date>2024-09-01T19:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: Feild extraction using regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-extraction-using-regex/m-p/697869#M237039</link>
      <description>&lt;P&gt;You can try something like below in rex command&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;channel[^A-Za-z]+(?&amp;lt;channel_type&amp;gt;[^\\]+)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 31 Aug 2024 16:49:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-extraction-using-regex/m-p/697869#M237039</guid>
      <dc:creator>Thulasinathan_M</dc:creator>
      <dc:date>2024-08-31T16:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: Feild extraction using regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-extraction-using-regex/m-p/697894#M237047</link>
      <description>&lt;P&gt;Firstly, this looks like it might be some sort of JSON, so you might be better of treating it as such.&lt;/P&gt;&lt;P&gt;However, if you wish to proceed with regex, then you could try something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "channel[^\w]+(?&amp;lt;channel&amp;gt;APP|web)"&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 01 Sep 2024 14:37:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-extraction-using-regex/m-p/697894#M237047</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-09-01T14:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: Feild extraction using regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-extraction-using-regex/m-p/697909#M237053</link>
      <description>&lt;P&gt;Actually, it looks like some horribly disfigured json. It's twice escaped "-&amp;gt;\"-&amp;gt;\\\"&lt;/P&gt;&lt;P&gt;It might be smart to look into the ingestion process and try to optimize it.&lt;/P&gt;</description>
      <pubDate>Sun, 01 Sep 2024 17:52:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-extraction-using-regex/m-p/697909#M237053</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-09-01T17:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: Feild extraction using regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-extraction-using-regex/m-p/697912#M237056</link>
      <description>&lt;P&gt;I agree with&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/231884"&gt;@PickleRick&lt;/a&gt;&amp;nbsp;but sometimes this can be gotten around by reparsing fields with spath, but we can't tell this without seeing the full event.&lt;/P&gt;</description>
      <pubDate>Sun, 01 Sep 2024 20:07:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-extraction-using-regex/m-p/697912#M237056</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-09-01T20:07:21Z</dc:date>
    </item>
  </channel>
</rss>

