<?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 in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Field-extraction/m-p/656785#M111224</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/236500"&gt;@smanojkumar&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;if you have the pair fieldname=fieldvalue, you should already have the extraction.&lt;/P&gt;&lt;P&gt;anyway, you could use two regexes like the following:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "OS\=\"(?&amp;lt;OS&amp;gt;[^\"]*)"
| rex "OSRelease\=\"(?&amp;lt;OSRelease&amp;gt;[^\"]*)"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Wed, 06 Sep 2023 08:01:49 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2023-09-06T08:01:49Z</dc:date>
    <item>
      <title>Field extraction</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Field-extraction/m-p/656784#M111223</link>
      <description>&lt;P&gt;Hi Splunkers!&lt;BR /&gt;&amp;nbsp; &amp;nbsp;I need to extract the specific field which dosent consists of sourcetype in logs,&lt;BR /&gt;&lt;BR /&gt;Fields to extract - OS, OSRelease&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="smanojkumar_0-1693987025541.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/27072i37D22179AB8FB60C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="smanojkumar_0-1693987025541.png" alt="smanojkumar_0-1693987025541.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="smanojkumar_1-1693987025539.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/27073i137D5C1F25749797/image-size/medium?v=v2&amp;amp;px=400" role="button" title="smanojkumar_1-1693987025539.png" alt="smanojkumar_1-1693987025539.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks in Advance,&lt;/P&gt;&lt;P&gt;Manoj Kumar S&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2023 07:57:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Field-extraction/m-p/656784#M111223</guid>
      <dc:creator>smanojkumar</dc:creator>
      <dc:date>2023-09-06T07:57:49Z</dc:date>
    </item>
    <item>
      <title>Re: Field extraction</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Field-extraction/m-p/656785#M111224</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/236500"&gt;@smanojkumar&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;if you have the pair fieldname=fieldvalue, you should already have the extraction.&lt;/P&gt;&lt;P&gt;anyway, you could use two regexes like the following:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "OS\=\"(?&amp;lt;OS&amp;gt;[^\"]*)"
| rex "OSRelease\=\"(?&amp;lt;OSRelease&amp;gt;[^\"]*)"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2023 08:01:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Field-extraction/m-p/656785#M111224</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-09-06T08:01:49Z</dc:date>
    </item>
    <item>
      <title>Re: Field extraction</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Field-extraction/m-p/656796#M111225</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;Thanks for your response!&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;At rare cased we don't have " " in OS and OSRelease, What would be the regex, that should extract in both the cases, Like&lt;BR /&gt;&lt;BR /&gt;OS="Windows", OS=Windows, OSRelease="jhvdhjc", OSRelease=nsvcv&lt;BR /&gt;&lt;BR /&gt;Thanks in advance!&lt;BR /&gt;Manoj Kumar S&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2023 10:17:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Field-extraction/m-p/656796#M111225</guid>
      <dc:creator>smanojkumar</dc:creator>
      <dc:date>2023-09-06T10:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: Field extraction</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Field-extraction/m-p/656797#M111226</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/236500"&gt;@smanojkumar&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;if you don't have quotes, you should be sue about the log forma to find a different rule, could you share some samples of your logs with and without quotes?&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2023 10:25:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Field-extraction/m-p/656797#M111226</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-09-06T10:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: Field extraction</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Field-extraction/m-p/656799#M111227</link>
      <description>&lt;P&gt;Without ""&lt;BR /&gt;&lt;BR /&gt;info_search_time=1693969036.181, OS=Linux, isBo=false, isFo=false, SCOPE=Unknown, isVIP=false, OSType=Linux, isCACP=false, isCMDB=false, isLost=false, Country=Unknown, isIndus=false, isMcAfee=true, isStolen=false, OSRelease=Unknown,&lt;BR /&gt;&lt;BR /&gt;With ""&lt;BR /&gt;&lt;BR /&gt;info_search_time=1693969036.181, OS="Windows Server 2019 Standard", isBo=true, isFo=false, SCOPE="IN", isVIP=false, OSType=Win, isCACP=false, isCMDB=true, isLost=false, Country=Germany, isIndus=false, isMcAfee=true, isStolen=false, OSRelease="EL Server 7.4 (Maipo", mcafee_LastCommunication="2023-09-05 20:30:35",&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2023 10:32:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Field-extraction/m-p/656799#M111227</guid>
      <dc:creator>smanojkumar</dc:creator>
      <dc:date>2023-09-06T10:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: Field extraction</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Field-extraction/m-p/656800#M111228</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/236500"&gt;@smanojkumar&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;in this case, please try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "OS\=\"*(?&amp;lt;OS&amp;gt;[^,\"]*).*OSRelease\=\"*(?&amp;lt;OSRelease&amp;gt;[^,\"]*)"&lt;/LI-CODE&gt;&lt;P&gt;that you can test at&amp;nbsp;&lt;A href="https://regex101.com/r/SQFX88/1" target="_blank"&gt;https://regex101.com/r/SQFX88/1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2023 10:36:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Field-extraction/m-p/656800#M111228</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-09-06T10:36:15Z</dc:date>
    </item>
  </channel>
</rss>

