<?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 build a lookup table without delimiters? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-build-a-lookup-table-without-delimiters/m-p/292885#M88417</link>
    <description>&lt;P&gt;Will the system have to deal with any binary zeroes x'00' in the data?&lt;/P&gt;</description>
    <pubDate>Thu, 17 Aug 2017 22:59:07 GMT</pubDate>
    <dc:creator>DalJeanis</dc:creator>
    <dc:date>2017-08-17T22:59:07Z</dc:date>
    <item>
      <title>How to build a lookup table without delimiters?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-build-a-lookup-table-without-delimiters/m-p/292880#M88412</link>
      <description>&lt;P&gt;Due to the nature of the data, we can't use any delimiters. &lt;/P&gt;

&lt;P&gt;The data layout is as follows by character position.&lt;/P&gt;

&lt;P&gt;Name = 1-8&lt;BR /&gt;
Department = 9-12&lt;BR /&gt;
Location= 13-24&lt;BR /&gt;
New Department = 25-28&lt;BR /&gt;
Status = 29-30&lt;/P&gt;

&lt;P&gt;Is there a way to specify the lookup definition based on these character position?&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2017 15:27:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-build-a-lookup-table-without-delimiters/m-p/292880#M88412</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2017-08-17T15:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to build a lookup table without delimiters?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-build-a-lookup-table-without-delimiters/m-p/292881#M88413</link>
      <description>&lt;P&gt;Yes, but no.  &lt;/P&gt;

&lt;P&gt;First, there is no reason your delimiter can't be something not possible to be present in the data, such as "!!!!".&lt;/P&gt;

&lt;P&gt;Second, unless the data is encrypted, those fields don't present as data types that would necessarily include ALL OF the special characters... semicolons, exclamation points, commas, @ # $ ^ &amp;amp; and so on.  &lt;/P&gt;

&lt;P&gt;So, what's up here?&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2017 16:43:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-build-a-lookup-table-without-delimiters/m-p/292881#M88413</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-08-17T16:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to build a lookup table without delimiters?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-build-a-lookup-table-without-delimiters/m-p/292882#M88414</link>
      <description>&lt;P&gt;Great - thank you @DalJeanis&lt;/P&gt;

&lt;P&gt;Instead of the field names mentioned before please consider the following -&lt;/P&gt;

&lt;P&gt;Field1 = positions 01-08&lt;BR /&gt;
Field2 = positions 09-12&lt;BR /&gt;
Field3 = positions 13-24&lt;BR /&gt;
Field4 = positions 25-28&lt;BR /&gt;
Field5 = positions 29-30&lt;/P&gt;

&lt;P&gt;These fields may contain any combinations of characters (displayable and non-displayable) including special characters.  So there are no combinations of characters that could reliably be used as a delimiter field.&lt;BR /&gt;
So the question is - Can a lookup table be built from a structured file where the records are fixed length as defined before, and how?&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2017 18:23:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-build-a-lookup-table-without-delimiters/m-p/292882#M88414</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2017-08-17T18:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to build a lookup table without delimiters?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-build-a-lookup-table-without-delimiters/m-p/292883#M88415</link>
      <description>&lt;P&gt;Are you indexing this data? Do you want to use data as-is as lookup table file?&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2017 18:34:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-build-a-lookup-table-without-delimiters/m-p/292883#M88415</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-08-17T18:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to build a lookup table without delimiters?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-build-a-lookup-table-without-delimiters/m-p/292884#M88416</link>
      <description>&lt;P&gt;We would like to use the data as-is...&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2017 18:52:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-build-a-lookup-table-without-delimiters/m-p/292884#M88416</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2017-08-17T18:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to build a lookup table without delimiters?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-build-a-lookup-table-without-delimiters/m-p/292885#M88417</link>
      <description>&lt;P&gt;Will the system have to deal with any binary zeroes x'00' in the data?&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2017 22:59:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-build-a-lookup-table-without-delimiters/m-p/292885#M88417</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-08-17T22:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to build a lookup table without delimiters?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-build-a-lookup-table-without-delimiters/m-p/292886#M88418</link>
      <description>&lt;P&gt;The field names are not an issue.  Knowing that the data is abstracted and/or encrypted is enough. &lt;/P&gt;

&lt;P&gt;Splunk CAN bring in and process binary files...&lt;/P&gt;

&lt;P&gt;Assuming the data is all in one 30 byte field, then this would extract the binary-valued fields...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | rex "^(?&amp;lt;Name&amp;gt;.{8})(?&amp;lt;Department&amp;gt;.{4})(?&amp;lt;Location&amp;gt;.{12})(?&amp;lt;New Department&amp;gt;.{4})(?&amp;lt;Status&amp;gt;.{2})$"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;...but I'm just not sure what other gotchas there might be involved with just slapping that data into a lookup and trying to use it as is.   &lt;/P&gt;

&lt;P&gt;I am TEMPTED to think in terms of having each of those fields except Status being converted into and represented by one to three 4-byte numbers.  I know that would perform the function without issue, but I don't know if I'm introducing unneeded complexity that the vanilla system would handle straight out of the box.&lt;/P&gt;

&lt;P&gt;I SUSPECT, based on other questions and answers about binary data, that splunk just isn't architected to handle it very well.  &lt;/P&gt;

&lt;P&gt;The best option that I can suggest is to convert the binary data into display-hex, thus taking up twice as much space, but consisting only of &lt;CODE&gt;[0-9A-F]&lt;/CODE&gt;.  Then it can be treated as character data.  &lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2017 23:27:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-build-a-lookup-table-without-delimiters/m-p/292886#M88418</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-08-17T23:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to build a lookup table without delimiters?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-build-a-lookup-table-without-delimiters/m-p/292887#M88419</link>
      <description>&lt;P&gt;Much appreciated @DalJeanis &lt;/P&gt;</description>
      <pubDate>Sun, 20 Aug 2017 11:56:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-build-a-lookup-table-without-delimiters/m-p/292887#M88419</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2017-08-20T11:56:13Z</dc:date>
    </item>
  </channel>
</rss>

