<?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: Fetch incident from subject in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Fetch-incident-from-subject/m-p/515197#M144641</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I think that this is duplicate question to&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.splunk.com/t5/Splunk-Search/Regex-help-for-incident/m-p/515131#M144610" target="_blank"&gt;https://community.splunk.com/t5/Splunk-Search/Regex-help-for-incident/m-p/515131#M144610&lt;/A&gt;&lt;/P&gt;&lt;P&gt;basically your issue seems to be wrong&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;“ and ”. Otherwise your query is working as expected just switch both of those to ".&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;| makeresults
| eval subject="[SecMail:] INC000027755501|TAS00003760220 wrdna904xusa73|server is unreachable | INC000027790458| INC000027882562"
| rex field=subject max_match=0 "(?&amp;lt;Incident&amp;gt;INC\d+)"
| table Incident subject&lt;/LI-CODE&gt;&lt;P&gt;r. Ismo&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 20 Aug 2020 12:19:02 GMT</pubDate>
    <dc:creator>isoutamo</dc:creator>
    <dc:date>2020-08-20T12:19:02Z</dc:date>
    <item>
      <title>Fetch incident from subject</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Fetch-incident-from-subject/m-p/515113#M144602</link>
      <description>&lt;P&gt;I am using below query to fetch Incident from the subject line:—&lt;/P&gt;&lt;P&gt;rex field=subject max_match=0 “(?&amp;lt;Incident&amp;gt;INC\d+)”&lt;/P&gt;&lt;P&gt;however, for below subject line i am unable to fetch incident:—&lt;/P&gt;&lt;P&gt;[SecMail:] INC000027755501|TAS00003760220 wrdna904xusa73|server is unreachable | INC000027790458| INC000027882562&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2020 05:24:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Fetch-incident-from-subject/m-p/515113#M144602</guid>
      <dc:creator>priya0709</dc:creator>
      <dc:date>2020-08-20T05:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch incident from subject</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Fetch-incident-from-subject/m-p/515197#M144641</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I think that this is duplicate question to&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.splunk.com/t5/Splunk-Search/Regex-help-for-incident/m-p/515131#M144610" target="_blank"&gt;https://community.splunk.com/t5/Splunk-Search/Regex-help-for-incident/m-p/515131#M144610&lt;/A&gt;&lt;/P&gt;&lt;P&gt;basically your issue seems to be wrong&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;“ and ”. Otherwise your query is working as expected just switch both of those to ".&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;| makeresults
| eval subject="[SecMail:] INC000027755501|TAS00003760220 wrdna904xusa73|server is unreachable | INC000027790458| INC000027882562"
| rex field=subject max_match=0 "(?&amp;lt;Incident&amp;gt;INC\d+)"
| table Incident subject&lt;/LI-CODE&gt;&lt;P&gt;r. Ismo&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2020 12:19:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Fetch-incident-from-subject/m-p/515197#M144641</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2020-08-20T12:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch incident from subject</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Fetch-incident-from-subject/m-p/515378#M144698</link>
      <description>&lt;P&gt;thank you for your reply!!&lt;/P&gt;&lt;P&gt;however, My query&lt;/P&gt;&lt;PRE&gt;rex field=subject max_match=0 "(?&amp;lt;Incident&amp;gt;INC\d+)"&lt;/PRE&gt;&lt;P&gt;works fine for Eg1 in which INC is appended by space in subject line. however, for eg2 INC is appended by | in this case Incident number is not fetched.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;eg 1:- RE: INC0000756784 | server is unreachable&amp;nbsp;&lt;/P&gt;&lt;P&gt;eg 2:- RE:INC0000564789|Minor|server unreachable&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2020 07:05:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Fetch-incident-from-subject/m-p/515378#M144698</guid>
      <dc:creator>priya0709</dc:creator>
      <dc:date>2020-08-21T07:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch incident from subject</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Fetch-incident-from-subject/m-p/515428#M144716</link>
      <description>&lt;P&gt;When I just made copy &amp;amp; paste from my previous example and then copy &amp;amp; paste both of your examples (one by one), both are working.&lt;/P&gt;&lt;P&gt;I suppose that you still have some issue with " or something similar.&lt;/P&gt;&lt;P&gt;r. Ismo&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2020 12:01:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Fetch-incident-from-subject/m-p/515428#M144716</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2020-08-21T12:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch incident from subject</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Fetch-incident-from-subject/m-p/515434#M144719</link>
      <description>&lt;P&gt;It doesn’t think of other characters. It matches &amp;nbsp;if there is INC FOLLOWED BY 10 digits.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2020 12:30:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Fetch-incident-from-subject/m-p/515434#M144719</guid>
      <dc:creator>thambisetty</dc:creator>
      <dc:date>2020-08-21T12:30:28Z</dc:date>
    </item>
  </channel>
</rss>

