<?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 from Raw Data in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-from-Raw-Data/m-p/501296#M139586</link>
    <description>&lt;P&gt;Run your search as you have it, pipe your results to erex (may favorite hidden gem in Splunk).&lt;/P&gt;

&lt;P&gt;The first "SamLogon" value is what you name the field, it's arbitrary. The second is the value that Splunk searches for.&lt;BR /&gt;
Run the search, the examine the Job Inpspector, it will provide the regex that Splunk used to find the value.&lt;BR /&gt;
You can fine tune it from there, but it is a fantastic starting point...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| erex SamLogon examples="SamLogon"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Documentation: &lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.3/SearchReference/Erex#Examples"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.3/SearchReference/Erex#Examples&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 20 May 2020 02:14:14 GMT</pubDate>
    <dc:creator>codebuilder</dc:creator>
    <dc:date>2020-05-20T02:14:14Z</dc:date>
    <item>
      <title>Field Extraction from Raw Data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-from-Raw-Data/m-p/501294#M139584</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;Im new to splunk and just started learning it and im having little issues extracting some fields from a raw data &lt;/P&gt;

&lt;P&gt;ex: of Ram Data&lt;BR /&gt;
04/12 15:50:38 [LOGON] [1860] Domain: SamLogon: Network logon of Domain\test1$ from machine1 Returns 0xC0000064&lt;/P&gt;

&lt;P&gt;I would like to extract the following &lt;/P&gt;

&lt;P&gt;SamLogon :  Network logon of Domain\test1$ from machine1&lt;BR /&gt;
 Returns : 0xC0000064&lt;/P&gt;

&lt;P&gt;im trying to use the regex in props.conf in SH &lt;/P&gt;

&lt;P&gt;Any help would be appreciated . Thanks &lt;/P&gt;</description>
      <pubDate>Tue, 19 May 2020 21:10:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-from-Raw-Data/m-p/501294#M139584</guid>
      <dc:creator>Dandanos</dc:creator>
      <dc:date>2020-05-19T21:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extraction from Raw Data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-from-Raw-Data/m-p/501295#M139585</link>
      <description>&lt;P&gt;Can you share what you've tried in props.conf?&lt;BR /&gt;
How fixed is the data you're parsing?  Are there any pieces of text a regular expression can key on?&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2020 00:51:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-from-Raw-Data/m-p/501295#M139585</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-05-20T00:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extraction from Raw Data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-from-Raw-Data/m-p/501296#M139586</link>
      <description>&lt;P&gt;Run your search as you have it, pipe your results to erex (may favorite hidden gem in Splunk).&lt;/P&gt;

&lt;P&gt;The first "SamLogon" value is what you name the field, it's arbitrary. The second is the value that Splunk searches for.&lt;BR /&gt;
Run the search, the examine the Job Inpspector, it will provide the regex that Splunk used to find the value.&lt;BR /&gt;
You can fine tune it from there, but it is a fantastic starting point...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| erex SamLogon examples="SamLogon"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Documentation: &lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.3/SearchReference/Erex#Examples"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.3/SearchReference/Erex#Examples&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2020 02:14:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-from-Raw-Data/m-p/501296#M139586</guid>
      <dc:creator>codebuilder</dc:creator>
      <dc:date>2020-05-20T02:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extraction from Raw Data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-from-Raw-Data/m-p/501297#M139587</link>
      <description>&lt;P&gt;&lt;CODE&gt;I'm trying to use the regex in props.conf in SH&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;in &lt;CODE&gt;SH&lt;/CODE&gt;? &lt;BR /&gt;
see: &lt;A href="https://answers.splunk.com/answers/6820/search-head-props-conf.html"&gt;https://answers.splunk.com/answers/6820/search-head-props-conf.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;You're probably using it as a standalone,&lt;BR /&gt;
props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;EXTRACT-fields = SamLogon: (?&amp;lt;Samlogon&amp;gt;.*) Returns (?&amp;lt;Returns&amp;gt;\S+)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 May 2020 02:19:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-from-Raw-Data/m-p/501297#M139587</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-05-20T02:19:56Z</dc:date>
    </item>
  </channel>
</rss>

