<?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: I'm trying to extract field That looks like below in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/I-m-trying-to-extract-field-That-looks-like-below/m-p/566843#M197536</link>
    <description>&lt;P&gt;&lt;SPAN&gt;What exactly are you trying to extract from that string? --&amp;nbsp;abcdd-gdfc-mb40-a801-e40fd9db481e&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm using field extractor through splunk web and writing the regular expression by myself&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 13 Sep 2021 12:27:35 GMT</pubDate>
    <dc:creator>PavanSeerapu</dc:creator>
    <dc:date>2021-09-13T12:27:35Z</dc:date>
    <item>
      <title>I'm trying to extract field That looks like below</title>
      <link>https://community.splunk.com/t5/Splunk-Search/I-m-trying-to-extract-field-That-looks-like-below/m-p/566681#M197461</link>
      <description>&lt;P&gt;I'm trying to extract field That looks like "Alert-source-key":"[\"abcdd-gdfc-mb40-a801-e40fd9db481e\"]"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried this&amp;nbsp;"Alert-source-key":"(?P&amp;lt;Alert_key&amp;gt;[^"]+)" but i'm getting results like "[/" since it is checking for only&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Sep 2021 19:23:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/I-m-trying-to-extract-field-That-looks-like-below/m-p/566681#M197461</guid>
      <dc:creator>PavanSeerapu</dc:creator>
      <dc:date>2021-09-10T19:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: I'm trying to extract field That looks like below</title>
      <link>https://community.splunk.com/t5/Splunk-Search/I-m-trying-to-extract-field-That-looks-like-below/m-p/566692#M197466</link>
      <description>&lt;P&gt;What exactly are you trying to extract from that string?&amp;nbsp; Where and how are you doing so?&lt;/P&gt;&lt;P&gt;If you're trying to extract the field using the rex command in a search then the embedded quotation marks must be escaped.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Sep 2021 20:25:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/I-m-trying-to-extract-field-That-looks-like-below/m-p/566692#M197466</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-09-10T20:25:53Z</dc:date>
    </item>
    <item>
      <title>Re: I'm trying to extract field That looks like below</title>
      <link>https://community.splunk.com/t5/Splunk-Search/I-m-trying-to-extract-field-That-looks-like-below/m-p/566843#M197536</link>
      <description>&lt;P&gt;&lt;SPAN&gt;What exactly are you trying to extract from that string? --&amp;nbsp;abcdd-gdfc-mb40-a801-e40fd9db481e&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm using field extractor through splunk web and writing the regular expression by myself&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Sep 2021 12:27:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/I-m-trying-to-extract-field-That-looks-like-below/m-p/566843#M197536</guid>
      <dc:creator>PavanSeerapu</dc:creator>
      <dc:date>2021-09-13T12:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: I'm trying to extract field That looks like below</title>
      <link>https://community.splunk.com/t5/Splunk-Search/I-m-trying-to-extract-field-That-looks-like-below/m-p/566845#M197538</link>
      <description>&lt;P&gt;This regex works in regex101.com and should also work in the Field Extractor.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Alert-source-key":"\[\\"(?&amp;lt;AlertSource&amp;gt;[^\\]+)&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 13 Sep 2021 12:32:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/I-m-trying-to-extract-field-That-looks-like-below/m-p/566845#M197538</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-09-13T12:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: I'm trying to extract field That looks like below</title>
      <link>https://community.splunk.com/t5/Splunk-Search/I-m-trying-to-extract-field-That-looks-like-below/m-p/566847#M197540</link>
      <description>&lt;P&gt;This seems to work&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults 
| eval foo = "\"Alert-source-key\":\"[\\\"abcdd-gdfc-mb40-a801-e40fd9db481e\\\"]\"" 
| rex field=foo "\"Alert-source-key\":\"\[\\\\\"(?P&amp;lt;Alert_key&amp;gt;[^\"\\\]+)"&lt;/LI-CODE&gt;&lt;P&gt;In this kind of cases there are needed "couple" of escapes \.&lt;/P&gt;&lt;P&gt;r. Ismo&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Sep 2021 12:39:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/I-m-trying-to-extract-field-That-looks-like-below/m-p/566847#M197540</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2021-09-13T12:39:35Z</dc:date>
    </item>
  </channel>
</rss>

