<?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: Field extraction Help in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Field-extraction-Help/m-p/551792#M156589</link>
    <description>&lt;P&gt;The status is not necessarily Turn On, I will also need to extract the word "Execute" where the location of the word is not the same for the case of "Execute All Appliances" and "In process to Execute".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am actually looking if there is anyway I can extract those words regardless of the location in the sentence.&lt;/P&gt;</description>
    <pubDate>Mon, 17 May 2021 07:44:34 GMT</pubDate>
    <dc:creator>moinyuso96</dc:creator>
    <dc:date>2021-05-17T07:44:34Z</dc:date>
    <item>
      <title>Field extraction Help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-extraction-Help/m-p/551770#M156581</link>
      <description>&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Description&amp;nbsp;&lt;/U&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Recorded value for [Turn On Test 123]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Recorded value for [Turn On Test 456]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Execute all Appliances&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In process to Execute&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to create another field name "Status" whereby it only extract "Turn On" for "Recorded value for [Turn On Test xxx]" and "Execute" for "Execute&amp;nbsp;all Appliances" &amp;amp; "In process to Execute"&lt;/P&gt;</description>
      <pubDate>Mon, 17 May 2021 03:16:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-extraction-Help/m-p/551770#M156581</guid>
      <dc:creator>moinyuso96</dc:creator>
      <dc:date>2021-05-17T03:16:13Z</dc:date>
    </item>
    <item>
      <title>Re: Field extraction Help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-extraction-Help/m-p/551780#M156586</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/234296"&gt;@moinyuso96&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;the extraction of a field in logs ad the ones you shared is easy, only one question: the status is always a dondition of two words (e.g. Turn on, Turn off, etc...) or not?&lt;/P&gt;&lt;P&gt;The possible statuses are fixed (e.g. only "Turn on" and Turn off"?&lt;/P&gt;&lt;P&gt;I ask this to exactly define the content of the status ield.&lt;/P&gt;&lt;P&gt;So if the status is always composed by two words, try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "\[(?&amp;lt;status&amp;gt;\w+\s\w+)"&lt;/LI-CODE&gt;&lt;P&gt;that you can test at&amp;nbsp;&lt;A href="https://regex101.com/r/VAPtVU/1" target="_blank"&gt;https://regex101.com/r/VAPtVU/1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 17 May 2021 05:55:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-extraction-Help/m-p/551780#M156586</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2021-05-17T05:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: Field extraction Help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-extraction-Help/m-p/551792#M156589</link>
      <description>&lt;P&gt;The status is not necessarily Turn On, I will also need to extract the word "Execute" where the location of the word is not the same for the case of "Execute All Appliances" and "In process to Execute".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am actually looking if there is anyway I can extract those words regardless of the location in the sentence.&lt;/P&gt;</description>
      <pubDate>Mon, 17 May 2021 07:44:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-extraction-Help/m-p/551792#M156589</guid>
      <dc:creator>moinyuso96</dc:creator>
      <dc:date>2021-05-17T07:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: Field extraction Help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-extraction-Help/m-p/551795#M156590</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/234296"&gt;@moinyuso96&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;as I said, the problem is that to correctly extract the status I need to know the format or the values of the status field.&lt;/P&gt;&lt;P&gt;If the values fo the status are defined and in a limitated number you can put these values in the regex, e.g. if the possible values are only "Tun On", "Turn Off" and "Execute", you could use them in the regex:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "\[(?&amp;lt;status&amp;gt;Turn On|Turn Off|Execute)"&lt;/LI-CODE&gt;&lt;P&gt;as you can see in &lt;A href="https://regex101.com/r/VAPtVU/2" target="_blank"&gt;https://regex101.com/r/VAPtVU/2&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 17 May 2021 07:51:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-extraction-Help/m-p/551795#M156590</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2021-05-17T07:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: Field extraction Help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-extraction-Help/m-p/551866#M156604</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/234296"&gt;@moinyuso96&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;good for you, see next time!&lt;/P&gt;&lt;P&gt;Ciao and happy splunking.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 May 2021 12:30:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-extraction-Help/m-p/551866#M156604</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2021-05-17T12:30:34Z</dc:date>
    </item>
  </channel>
</rss>

