<?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 extract variable length message field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-variable-length-message-field/m-p/118172#M31526</link>
    <description>&lt;P&gt;I'd post them, but I would have to pull them from a lab environment - which I don't always have access to.&lt;/P&gt;

&lt;P&gt;They are also to numerous and unique to give you guys anything meaningful by posting them.&lt;/P&gt;

&lt;P&gt;I noticed that since the events are coming in CEF, all the field values that are pipe | delimited are extracted just fine, even if there is a space (such as |Delete Attibute| or |Microsoft Windows|).&lt;/P&gt;

&lt;P&gt;Once the pipe delimitation ends, it seems to perform 'space delimitation' on the rest of the message - fields such as cs1, cs2,cs3, cs1label, msg, etc.&lt;/P&gt;</description>
    <pubDate>Fri, 04 Apr 2014 15:24:45 GMT</pubDate>
    <dc:creator>jravida</dc:creator>
    <dc:date>2014-04-04T15:24:45Z</dc:date>
    <item>
      <title>How to extract variable length message field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-variable-length-message-field/m-p/118167#M31521</link>
      <description>&lt;P&gt;Hey folks,&lt;/P&gt;

&lt;P&gt;So I have some logs coming in CEF format. Splunk is doing it's automatic field extraction, but when I look at the msg field, it only contains the first word of the message field.&lt;/P&gt;

&lt;P&gt;So it looks like this:&lt;/P&gt;

&lt;P&gt;msg=The&lt;/P&gt;

&lt;P&gt;instead of &lt;/P&gt;

&lt;P&gt;msg=The user was granted magical powers for 15 minutes.&lt;/P&gt;

&lt;P&gt;It just kicks out the rest of the message. It can't be found within any other fields.&lt;BR /&gt;
I've only set this up to ingest syslog data being put on my local server, and defined the index/sourcetype. Nothing fancy, yet.&lt;/P&gt;

&lt;P&gt;Any help would be greatly appreciated!&lt;/P&gt;</description>
      <pubDate>Wed, 02 Apr 2014 22:00:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-variable-length-message-field/m-p/118167#M31521</guid>
      <dc:creator>jravida</dc:creator>
      <dc:date>2014-04-02T22:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract variable length message field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-variable-length-message-field/m-p/118168#M31522</link>
      <description>&lt;P&gt;It looks like you'll be forced to create a field extraction by yourself. This will likely require some regex skills. You should post some sample events so that others can help you.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Apr 2014 09:07:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-variable-length-message-field/m-p/118168#M31522</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2014-04-03T09:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract variable length message field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-variable-length-message-field/m-p/118169#M31523</link>
      <description>&lt;P&gt;Also, if you have control over the log file format, you may want to enclose string fields with multiple words within double quotes.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Apr 2014 14:21:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-variable-length-message-field/m-p/118169#M31523</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-04-03T14:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract variable length message field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-variable-length-message-field/m-p/118170#M31524</link>
      <description>&lt;P&gt;Hey folks, thanks for the help so far.&lt;/P&gt;

&lt;P&gt;On further inspection of the events, it appears that all fields in all events (ones I have coming in CEF format from a remote ArcSight connector, and being placed in a file via syslog on the splunk box) suffer from the same symptom.&lt;/P&gt;

&lt;P&gt;Regardless of the log source or key field, if the variable has a space then the next words are ignored. Only the first word gets extracted.&lt;/P&gt;

&lt;P&gt;I'm hoping there is a higher level than building regexes to process this, as that wouldn't be very scalable and it would be incredibly time consuming.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Apr 2014 19:56:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-variable-length-message-field/m-p/118170#M31524</guid>
      <dc:creator>jravida</dc:creator>
      <dc:date>2014-04-03T19:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract variable length message field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-variable-length-message-field/m-p/118171#M31525</link>
      <description>&lt;P&gt;Yeah, post a sample.  Depending on what comes after each field, there may be other field extraction options.  Just click &lt;CODE&gt;Edit&lt;/CODE&gt; under your question to post additional content.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Apr 2014 14:26:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-variable-length-message-field/m-p/118171#M31525</guid>
      <dc:creator>Lowell</dc:creator>
      <dc:date>2014-04-04T14:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract variable length message field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-variable-length-message-field/m-p/118172#M31526</link>
      <description>&lt;P&gt;I'd post them, but I would have to pull them from a lab environment - which I don't always have access to.&lt;/P&gt;

&lt;P&gt;They are also to numerous and unique to give you guys anything meaningful by posting them.&lt;/P&gt;

&lt;P&gt;I noticed that since the events are coming in CEF, all the field values that are pipe | delimited are extracted just fine, even if there is a space (such as |Delete Attibute| or |Microsoft Windows|).&lt;/P&gt;

&lt;P&gt;Once the pipe delimitation ends, it seems to perform 'space delimitation' on the rest of the message - fields such as cs1, cs2,cs3, cs1label, msg, etc.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Apr 2014 15:24:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-variable-length-message-field/m-p/118172#M31526</guid>
      <dc:creator>jravida</dc:creator>
      <dc:date>2014-04-04T15:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract variable length message field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-variable-length-message-field/m-p/118173#M31527</link>
      <description>&lt;P&gt;Have you looked at the &lt;EM&gt;CEF (Common Event Format) Extraction Utilities&lt;/EM&gt; app?   &lt;A href="http://apps.splunk.com/app/487/"&gt;http://apps.splunk.com/app/487/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Apr 2014 15:32:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-variable-length-message-field/m-p/118173#M31527</guid>
      <dc:creator>Lowell</dc:creator>
      <dc:date>2014-04-04T15:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract variable length message field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-variable-length-message-field/m-p/118174#M31528</link>
      <description>&lt;P&gt;This is EXACTLY what I'm looking for! Splunk community to the rescue. Thanks Lowell!&lt;/P&gt;</description>
      <pubDate>Fri, 04 Apr 2014 15:38:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-variable-length-message-field/m-p/118174#M31528</guid>
      <dc:creator>jravida</dc:creator>
      <dc:date>2014-04-04T15:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract variable length message field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-variable-length-message-field/m-p/118175#M31529</link>
      <description>&lt;P&gt;I converted my comment to an answer.  If it does in fact resolve your issue, click on the check mark icon.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Apr 2014 16:21:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-variable-length-message-field/m-p/118175#M31529</guid>
      <dc:creator>Lowell</dc:creator>
      <dc:date>2014-04-04T16:21:41Z</dc:date>
    </item>
  </channel>
</rss>

