<?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 needed in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/What-is-the-best-approach-to-this-field-extraction/m-p/597859#M12552</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;When I had ingested original dataset, I had used key value pairs to extract a lot of information per requirements and that has been working flawlessly until new requirements came to extract this information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The rex for field transformation I have been using for this dataset that works as needed is:&lt;BR /&gt;(\r|\n)*(?&amp;lt;_KEY_1&amp;gt;[^:]+):(?&amp;lt;_VAL_1&amp;gt;[^\r\n]+)&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Automatically clean field names option is enabled.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Sat, 14 May 2022 17:07:51 GMT</pubDate>
    <dc:creator>mbasharat</dc:creator>
    <dc:date>2022-05-14T17:07:51Z</dc:date>
    <item>
      <title>What is the best approach to this field extraction?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/What-is-the-best-approach-to-this-field-extraction/m-p/597854#M12550</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have a field name &lt;STRONG&gt;Details&lt;/STRONG&gt;. This field contains a lot of information in varying format. e.g. software installed on endpoints, updates installed etc. I need to extract this information from this field. Sample is below. What is the best approach? I need both from configuring field extraction for this in configs or in actual Splunk search using rex or eval.&lt;/P&gt;
&lt;P&gt;Fields to be extracted:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;Path&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Version/Installed Version&lt;/STRONG&gt;: Both need to be extracted in a way that *Version* is used to cover variations.&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Method/Detection Method&lt;/STRONG&gt;: Both need to be extracted in a way that *Method* is used to cover variations.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;STRONG&gt;Variation 1:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;plugin_output&amp;gt;&lt;BR /&gt;Path : /opt/AdoptOpenJRE/jdk8u332-b09-jre/&lt;BR /&gt;Version : 1.8.0_332&lt;BR /&gt;Binary Location : /opt/AdoptOpenJRE/jdk8u332-b09-jre/bin/java&lt;BR /&gt;Details : This Java install appears to be Java Runtime Environment, since&lt;BR /&gt;"jre" was found in the installation path and javac was not found&lt;BR /&gt;(medium confidence).&lt;BR /&gt;This Java install may be Oracle Java or OpenJDK Java due to&lt;BR /&gt;"org.openjdk.java.util" in the binary (low confidence).&lt;BR /&gt;Detection Method : "find" utility&lt;BR /&gt;&amp;lt;/plugin_output&amp;gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Variation 2:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;plugin_output&amp;gt;&lt;BR /&gt;Path : /HP/hpoa/CADE2/HP/nonOV/openadaptor/1_6_5/classes/oa_jdk14_classes.jar&lt;BR /&gt;Version : 1.1.0&lt;BR /&gt;JMSAppender.class association : Found&lt;BR /&gt;JdbcAppender.class association : Found&lt;BR /&gt;JndiLookup.class association : Not Found&lt;BR /&gt;Method : MANIFEST.MF dependency&lt;BR /&gt;&amp;lt;/plugin_output&amp;gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Variation 3:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;plugin_output&amp;gt;&lt;BR /&gt;Path : /opt/IBM/WebSphere855/AppServer/java_1.7_64/&lt;BR /&gt;Installed version : 7.0&lt;BR /&gt;Fixed version : 7.0.11.5&lt;/P&gt;
&lt;P&gt;Path : /opt/IBM/WebSphere855/AppServer.old/java_1.7_64/&lt;BR /&gt;Installed version : 7.0&lt;BR /&gt;Fixed version : 7.0.11.5&lt;/P&gt;
&lt;P&gt;Path : /opt/IBM/WebSphere855/AppServer.gagan/java_1.7_64/&lt;BR /&gt;Installed version : 7.0&lt;BR /&gt;Fixed version : 7.0.11.5&lt;/P&gt;
&lt;P&gt;Path : /opt/IBM/InstallationManager/eclipse/jre_7.0.100001.20170309_1301/&lt;BR /&gt;Installed version : 7.0&lt;BR /&gt;Fixed version : 7.0.11.5&lt;BR /&gt;&amp;lt;/plugin_output&amp;gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Thanks in-advance!!&lt;/P&gt;</description>
      <pubDate>Sun, 15 May 2022 20:11:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/What-is-the-best-approach-to-this-field-extraction/m-p/597854#M12550</guid>
      <dc:creator>mbasharat</dc:creator>
      <dc:date>2022-05-15T20:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: Field extraction needed</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/What-is-the-best-approach-to-this-field-extraction/m-p/597858#M12551</link>
      <description>&lt;P&gt;What have you tried so far?&amp;nbsp; What results did you get from those efforts?&lt;/P&gt;&lt;P&gt;Is Variation3 a single event or separate events?&amp;nbsp; If the former, what should be extracted and is the number of sections fixed?&lt;/P&gt;</description>
      <pubDate>Sat, 14 May 2022 16:33:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/What-is-the-best-approach-to-this-field-extraction/m-p/597858#M12551</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-05-14T16:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: Field extraction needed</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/What-is-the-best-approach-to-this-field-extraction/m-p/597859#M12552</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;When I had ingested original dataset, I had used key value pairs to extract a lot of information per requirements and that has been working flawlessly until new requirements came to extract this information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The rex for field transformation I have been using for this dataset that works as needed is:&lt;BR /&gt;(\r|\n)*(?&amp;lt;_KEY_1&amp;gt;[^:]+):(?&amp;lt;_VAL_1&amp;gt;[^\r\n]+)&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Automatically clean field names option is enabled.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Sat, 14 May 2022 17:07:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/What-is-the-best-approach-to-this-field-extraction/m-p/597859#M12552</guid>
      <dc:creator>mbasharat</dc:creator>
      <dc:date>2022-05-14T17:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: Field extraction needed</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/What-is-the-best-approach-to-this-field-extraction/m-p/597882#M12557</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/86891"&gt;@mbasharat&lt;/a&gt;&amp;nbsp;- Try this regex:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[\r\n]+(?&amp;lt;_KEY_1&amp;gt;[^\n:]+):(?&amp;lt;_VAL_1&amp;gt;[^\r\n]+)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps!!!!&lt;/P&gt;</description>
      <pubDate>Sun, 15 May 2022 11:49:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/What-is-the-best-approach-to-this-field-extraction/m-p/597882#M12557</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2022-05-15T11:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: Field extraction needed</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/What-is-the-best-approach-to-this-field-extraction/m-p/598108#M12571</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/93915"&gt;@VatsalJagani&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How have you tested your provided regex in splunk search? I see a slight tweak in yours vs mine. Mine is out there in production so I need to be definitive so please provide test search you have used. Also, can it be search time extraction and if yes then how?&lt;/P&gt;&lt;P&gt;Thanks in advance!!!&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2022 15:24:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/What-is-the-best-approach-to-this-field-extraction/m-p/598108#M12571</guid>
      <dc:creator>mbasharat</dc:creator>
      <dc:date>2022-05-17T15:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: Field extraction needed</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/What-is-the-best-approach-to-this-field-extraction/m-p/598113#M12573</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/86891"&gt;@mbasharat&lt;/a&gt;&amp;nbsp;- I've tested in regex101.&lt;/P&gt;&lt;P&gt;Please check here to see if you are getting what you need -&amp;nbsp;&lt;A href="https://regex101.com/r/DoWz5Q/1" target="_blank"&gt;https://regex101.com/r/DoWz5Q/1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Of course, I'm not gonna test in a live environment because my environment will not have this data.&lt;/P&gt;&lt;P&gt;Generally, the preferred practice is that you test all configuration changes in a staging environment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps!!!!&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2022 15:30:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/What-is-the-best-approach-to-this-field-extraction/m-p/598113#M12573</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2022-05-17T15:30:29Z</dc:date>
    </item>
  </channel>
</rss>

