<?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 multiple words in a filed in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Extract-multiple-words-in-a-filed/m-p/531673#M150168</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have some syslog logs and I need to extract the first words of a field values. The field value starts like this:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t"&gt;Site&lt;/SPAN&gt; &lt;SPAN class="t"&gt;Corporate&lt;/SPAN&gt; &lt;SPAN class="t"&gt;Windows&lt;/SPAN&gt; &lt;SPAN class="t"&gt;AM\\Passed\\&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t"&gt;My result should be :&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t"&gt;Corporate Passed&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t"&gt;Note: I can have also Unmanaged instead of Corporate and Failed insted of Passed, so I have 4 options:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t"&gt;Corporate Passed&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t"&gt;Corporate Failed&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t"&gt;Unmanaged Passed&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t"&gt;Unmanaged Failed&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 02 Dec 2020 10:53:39 GMT</pubDate>
    <dc:creator>marco_massari11</dc:creator>
    <dc:date>2020-12-02T10:53:39Z</dc:date>
    <item>
      <title>Extract multiple words in a filed</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-multiple-words-in-a-filed/m-p/531673#M150168</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have some syslog logs and I need to extract the first words of a field values. The field value starts like this:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t"&gt;Site&lt;/SPAN&gt; &lt;SPAN class="t"&gt;Corporate&lt;/SPAN&gt; &lt;SPAN class="t"&gt;Windows&lt;/SPAN&gt; &lt;SPAN class="t"&gt;AM\\Passed\\&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t"&gt;My result should be :&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t"&gt;Corporate Passed&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t"&gt;Note: I can have also Unmanaged instead of Corporate and Failed insted of Passed, so I have 4 options:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t"&gt;Corporate Passed&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t"&gt;Corporate Failed&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t"&gt;Unmanaged Passed&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t"&gt;Unmanaged Failed&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2020 10:53:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-multiple-words-in-a-filed/m-p/531673#M150168</guid>
      <dc:creator>marco_massari11</dc:creator>
      <dc:date>2020-12-02T10:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: Extract multiple words in a filed</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-multiple-words-in-a-filed/m-p/531676#M150169</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/228757"&gt;@marco_massari11&lt;/a&gt;&amp;nbsp;if you want extract multiple fields then try below-&lt;BR /&gt;&lt;STRONG&gt;Updated-&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Site (?&amp;lt;field1&amp;gt;\w+)[^\\\\]+\\\\(?&amp;lt;field2&amp;gt;\w+)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It will extract in field1 and field2.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;-------&lt;BR /&gt;let me know if it helps!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2020 13:31:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-multiple-words-in-a-filed/m-p/531676#M150169</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2020-12-02T13:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: Extract multiple words in a filed</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-multiple-words-in-a-filed/m-p/531678#M150170</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/206320"&gt;@493669&lt;/a&gt;&amp;nbsp; I have this message error&amp;nbsp; Regex: missing terminating ] for character class.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2020 12:12:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-multiple-words-in-a-filed/m-p/531678#M150170</guid>
      <dc:creator>marco_massari11</dc:creator>
      <dc:date>2020-12-02T12:12:51Z</dc:date>
    </item>
    <item>
      <title>Re: Extract multiple words in a filed</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-multiple-words-in-a-filed/m-p/531688#M150174</link>
      <description>&lt;P&gt;That happens because of some additional escaping which is needed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this version, which avoids needing a triple \&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Site (?&amp;lt;site&amp;gt;\w+).+\\\\(?&amp;lt;result&amp;gt;\w+)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2020 13:27:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-multiple-words-in-a-filed/m-p/531688#M150174</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2020-12-02T13:27:54Z</dc:date>
    </item>
  </channel>
</rss>

