<?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 a semicolon separated file for a lookup file in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/how-to-parse-a-semicolon-separated-file-for-a-lookup-file/m-p/332972#M159897</link>
    <description>&lt;P&gt;@bheemireddi, converted your post to comment, since it is a follow up question, not the answer to the question being asked.&lt;/P&gt;</description>
    <pubDate>Wed, 26 Jul 2017 03:20:33 GMT</pubDate>
    <dc:creator>niketn</dc:creator>
    <dc:date>2017-07-26T03:20:33Z</dc:date>
    <item>
      <title>how to parse a semicolon separated file for a lookup file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-parse-a-semicolon-separated-file-for-a-lookup-file/m-p/332969#M159894</link>
      <description>&lt;P&gt;I have a semicolon separated file that is to be used as a lookup file. How do you parse the file within the transforms.conf? I tried the DELIMS and FIELDS but no luck.  I also tried to do the REGEX, and no luck. &lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2017 16:10:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-parse-a-semicolon-separated-file-for-a-lookup-file/m-p/332969#M159894</guid>
      <dc:creator>SplunkDank</dc:creator>
      <dc:date>2017-07-25T16:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: how to parse a semicolon separated file for a lookup file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-parse-a-semicolon-separated-file-for-a-lookup-file/m-p/332970#M159895</link>
      <description>&lt;P&gt;How does your props and transforms look?&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2017 16:51:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-parse-a-semicolon-separated-file-for-a-lookup-file/m-p/332970#M159895</guid>
      <dc:creator>bheemireddi</dc:creator>
      <dc:date>2017-07-25T16:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: how to parse a semicolon separated file for a lookup file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-parse-a-semicolon-separated-file-for-a-lookup-file/m-p/332971#M159896</link>
      <description>&lt;P&gt;Can you add sample data, does it have header column? Are you planning to upload the file to index or lookup?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2017 03:17:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-parse-a-semicolon-separated-file-for-a-lookup-file/m-p/332971#M159896</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-07-26T03:17:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to parse a semicolon separated file for a lookup file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-parse-a-semicolon-separated-file-for-a-lookup-file/m-p/332972#M159897</link>
      <description>&lt;P&gt;@bheemireddi, converted your post to comment, since it is a follow up question, not the answer to the question being asked.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2017 03:20:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-parse-a-semicolon-separated-file-for-a-lookup-file/m-p/332972#M159897</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-07-26T03:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: how to parse a semicolon separated file for a lookup file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-parse-a-semicolon-separated-file-for-a-lookup-file/m-p/332973#M159898</link>
      <description>&lt;P&gt;Only CSV files can be used for lookups. You will need to write a script to convert the file from semi-colon separated to CSV. Or perhaps use a manual tool to convert the file to CSV (for example, Microsoft Excel can import data with arbitrary delimiters).&lt;/P&gt;

&lt;P&gt;Run the script and write the resulting CSV file to the lookups directory in the appropriate app. &lt;BR /&gt;
Then put the settings in the transforms.conf in the local directory of the same app.&lt;BR /&gt;
Only these settings apply to lookups tables:&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Admin/Transformsconf#Lookup_tables"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Admin/Transformsconf#Lookup_tables&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;DELIMS, FIELDS and REGEX are transformations that are applied to events as they are parsed and indexed. These settings do not apply to lookup tables.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2017 05:31:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-parse-a-semicolon-separated-file-for-a-lookup-file/m-p/332973#M159898</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2017-07-27T05:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: how to parse a semicolon separated file for a lookup file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-parse-a-semicolon-separated-file-for-a-lookup-file/m-p/332974#M159899</link>
      <description>&lt;P&gt;If there is anybody still &lt;STRONG&gt;looking at finding an alternative for using commas in a csv lookup file&lt;/STRONG&gt;, because they CAN'T use commas, because their fields contain commas, GOOD NEWS:&lt;BR /&gt;
You can use &lt;STRONG&gt;quotes as text delimiters&lt;/STRONG&gt; and commas as field delimiters in the following fashion:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"field1","field2"
"example1,  that contains commas","something"
"example2",""
"","example3"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Splunk correctly extracts field value pairs!&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2019 02:42:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-parse-a-semicolon-separated-file-for-a-lookup-file/m-p/332974#M159899</guid>
      <dc:creator>lydiapal_splunk</dc:creator>
      <dc:date>2019-05-13T02:42:03Z</dc:date>
    </item>
  </channel>
</rss>

