<?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: How to parse hash code from a raw log into a field in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-hash-code-from-a-raw-log-into-a-field/m-p/411556#M94505</link>
    <description>&lt;P&gt;@kjebaker3 adding a raw event sample would help for us to identify correct regular expression pattern. Assuming SHA # will be followed by a space character (SHA will not have space in it), you can try the following regex on your _raw events:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;yourSearch&amp;gt;
| rex "SHA (?&amp;lt;hash&amp;gt;[^\s]+)\s"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;@cpetterborg, slightly changed your Regex. Not sure of exact pattern until complete event can be posted.&lt;/P&gt;</description>
    <pubDate>Thu, 28 Jun 2018 02:34:06 GMT</pubDate>
    <dc:creator>niketn</dc:creator>
    <dc:date>2018-06-28T02:34:06Z</dc:date>
    <item>
      <title>How to parse hash code from a raw log into a field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-hash-code-from-a-raw-log-into-a-field/m-p/411554#M94503</link>
      <description>&lt;P&gt;Mail_Log_Splunk: Info: MID 119972447 SHA &lt;STRONG&gt;ee1b5fe97eb813f416052526bc191f3112382a7e9638fba3a3ed2652acf81d5a&lt;/STRONG&gt; filename Pics meeting pagoda.doc queued for possible file analysis upload&lt;/P&gt;

&lt;P&gt;What is the regex to parse the bold section out of a raw log? &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:12:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-hash-code-from-a-raw-log-into-a-field/m-p/411554#M94503</guid>
      <dc:creator>kjebaker3</dc:creator>
      <dc:date>2020-09-29T20:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to parse hash code from a raw log into a field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-hash-code-from-a-raw-log-into-a-field/m-p/411555#M94504</link>
      <description>&lt;P&gt;Something like this "run-anywhere" example should work for the case you provide:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults
| eval _raw="Mail_Log_Splunk: Info: MID 119972447 SHA ee1b5fe97eb813f416052526bc191f3112382a7e9638fba3a3ed2652acf81d5a" 
| rex "SHA (?&amp;lt;hash&amp;gt;[a-f0-9]+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 27 Jun 2018 19:11:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-hash-code-from-a-raw-log-into-a-field/m-p/411555#M94504</guid>
      <dc:creator>cpetterborg</dc:creator>
      <dc:date>2018-06-27T19:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to parse hash code from a raw log into a field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-hash-code-from-a-raw-log-into-a-field/m-p/411556#M94505</link>
      <description>&lt;P&gt;@kjebaker3 adding a raw event sample would help for us to identify correct regular expression pattern. Assuming SHA # will be followed by a space character (SHA will not have space in it), you can try the following regex on your _raw events:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;yourSearch&amp;gt;
| rex "SHA (?&amp;lt;hash&amp;gt;[^\s]+)\s"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;@cpetterborg, slightly changed your Regex. Not sure of exact pattern until complete event can be posted.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2018 02:34:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-hash-code-from-a-raw-log-into-a-field/m-p/411556#M94505</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-06-28T02:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to parse hash code from a raw log into a field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-hash-code-from-a-raw-log-into-a-field/m-p/411557#M94506</link>
      <description>&lt;P&gt;Thank you, for your answers! How would I make this into a field extraction?&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2018 17:13:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-hash-code-from-a-raw-log-into-a-field/m-p/411557#M94506</guid>
      <dc:creator>kjebaker3</dc:creator>
      <dc:date>2018-06-28T17:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to parse hash code from a raw log into a field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-hash-code-from-a-raw-log-into-a-field/m-p/411558#M94507</link>
      <description>&lt;P&gt;At search time, or index time? BTW, Splunk best practice is at search time.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2018 19:45:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-hash-code-from-a-raw-log-into-a-field/m-p/411558#M94507</guid>
      <dc:creator>cpetterborg</dc:creator>
      <dc:date>2018-06-28T19:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to parse hash code from a raw log into a field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-hash-code-from-a-raw-log-into-a-field/m-p/411559#M94508</link>
      <description>&lt;P&gt;At search time. I need to use a Data Model that contains fields that are currently not being parsed from the raw logs. I ran the regex and it worked so now I need this to be a field extraction that I can add to an app that the Data Model uses. &lt;/P&gt;</description>
      <pubDate>Fri, 29 Jun 2018 13:51:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-hash-code-from-a-raw-log-into-a-field/m-p/411559#M94508</guid>
      <dc:creator>kjebaker3</dc:creator>
      <dc:date>2018-06-29T13:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to parse hash code from a raw log into a field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-hash-code-from-a-raw-log-into-a-field/m-p/411560#M94509</link>
      <description>&lt;P&gt;Create a field extraction by going to Settings -&amp;gt; Fields -&amp;gt; Field Extractions -&amp;gt; New Field Extraction.&lt;/P&gt;

&lt;P&gt;Then you fill in the form and use the regex in the Extraction/Transform field of the form.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jun 2018 19:10:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-hash-code-from-a-raw-log-into-a-field/m-p/411560#M94509</guid>
      <dc:creator>cpetterborg</dc:creator>
      <dc:date>2018-06-29T19:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to parse hash code from a raw log into a field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-hash-code-from-a-raw-log-into-a-field/m-p/411561#M94510</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... |  rex "SHA (?&amp;lt;hash&amp;gt;\S+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 01 Jul 2018 03:55:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-hash-code-from-a-raw-log-into-a-field/m-p/411561#M94510</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2018-07-01T03:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to parse hash code from a raw log into a field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-hash-code-from-a-raw-log-into-a-field/m-p/411562#M94511</link>
      <description>&lt;P&gt;@kjebaker3, refer to the following documentation for Field Extraction using IFX. You can override the automatic regular expression with your custom regular expression in the guided wizard: &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Knowledge/ExtractfieldsinteractivelywithIFX"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Knowledge/ExtractfieldsinteractivelywithIFX&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 01 Jul 2018 13:14:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-hash-code-from-a-raw-log-into-a-field/m-p/411562#M94511</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-07-01T13:14:43Z</dc:date>
    </item>
  </channel>
</rss>

