<?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 Multicharacter Event Delimiter in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Multicharacter-Event-Delimiter/m-p/294180#M55911</link>
    <description>&lt;P&gt;All,&lt;/P&gt;

&lt;P&gt;I have data that looks like this&lt;/P&gt;

&lt;P&gt;event_timestamp | vendor_action | http_method | url | user_dn | src_ip | source | application | | protocol | field_11&lt;/P&gt;

&lt;P&gt;Yes, the delimiter is space, pipe, space.  The problem is those rare events that have | in the url cause the original regex and delims to put information into the wrong field.  I wrote this regex&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;^(.*)\s\|\s(.*)\s\|\s(.*)\s\|\s(.*)\s\|\s(.*)\s\|\s(.*)\s\|\s(.*)\s\|\s(.*)\s\|\s\|\s(.*)\s\|\s(.*)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and it shows things being extracted properly in the regex tool.  When I put it into my laptop Splunk 6.5.2, it doesn’t process.  Anyone have a solution for this problem?&lt;/P&gt;

&lt;P&gt;TIA&lt;BR /&gt;
Joe&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 13:24:05 GMT</pubDate>
    <dc:creator>jwhughes58</dc:creator>
    <dc:date>2020-09-29T13:24:05Z</dc:date>
    <item>
      <title>Multicharacter Event Delimiter</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multicharacter-Event-Delimiter/m-p/294180#M55911</link>
      <description>&lt;P&gt;All,&lt;/P&gt;

&lt;P&gt;I have data that looks like this&lt;/P&gt;

&lt;P&gt;event_timestamp | vendor_action | http_method | url | user_dn | src_ip | source | application | | protocol | field_11&lt;/P&gt;

&lt;P&gt;Yes, the delimiter is space, pipe, space.  The problem is those rare events that have | in the url cause the original regex and delims to put information into the wrong field.  I wrote this regex&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;^(.*)\s\|\s(.*)\s\|\s(.*)\s\|\s(.*)\s\|\s(.*)\s\|\s(.*)\s\|\s(.*)\s\|\s(.*)\s\|\s\|\s(.*)\s\|\s(.*)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and it shows things being extracted properly in the regex tool.  When I put it into my laptop Splunk 6.5.2, it doesn’t process.  Anyone have a solution for this problem?&lt;/P&gt;

&lt;P&gt;TIA&lt;BR /&gt;
Joe&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:24:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multicharacter-Event-Delimiter/m-p/294180#M55911</guid>
      <dc:creator>jwhughes58</dc:creator>
      <dc:date>2020-09-29T13:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: Multicharacter Event Delimiter</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multicharacter-Event-Delimiter/m-p/294181#M55912</link>
      <description>&lt;P&gt;@jwhughes58...You can add the sample data to Splunk's Interactive Field Extractor and then select the unmatched event with URL having required delimiter so that Splunk re-generates the required reg-ex.&lt;/P&gt;

&lt;P&gt;Checkout following Splunk Documentation:&lt;BR /&gt;
&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;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Knowledge/FXSelectFieldsstep"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Knowledge/FXSelectFieldsstep&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2017 20:59:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multicharacter-Event-Delimiter/m-p/294181#M55912</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-03-24T20:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: Multicharacter Event Delimiter</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multicharacter-Event-Delimiter/m-p/294182#M55913</link>
      <description>&lt;P&gt;With kudos to @niketnilay this is the final solution to my regex question.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;^(\d+/\d+/\d+\s+\d+:\d+:\d+)[^\|\n]*\|\s+([^ ]+)[^\|\n]*\|\s+(\w+)(?:[^ \n]* ){2}([^ ]+)[^\|\n]*\|\s+([^ ]+)\s+\|\s+([^ ]+)[^\|\n]*\|\s+([a-z]+_[a-z]+\d+)[^\|\n]*\|\s+([^ ]+)\s+\|\s+\|\s+(\w+)\s\|\s(.*)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It is ugly as all out, but it works.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2017 22:05:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multicharacter-Event-Delimiter/m-p/294182#M55913</guid>
      <dc:creator>jwhughes58</dc:creator>
      <dc:date>2017-03-24T22:05:46Z</dc:date>
    </item>
    <item>
      <title>Re: Multicharacter Event Delimiter</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multicharacter-Event-Delimiter/m-p/294183#M55914</link>
      <description>&lt;P&gt;@jwhughes58... glad it worked &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 25 Mar 2017 16:58:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multicharacter-Event-Delimiter/m-p/294183#M55914</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-03-25T16:58:03Z</dc:date>
    </item>
  </channel>
</rss>

