<?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 How do I load the custom delimited file with header into splunk in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-load-the-custom-delimited-file-with-header-into-splunk/m-p/360684#M65786</link>
    <description>&lt;P&gt;I have a delimited header file of the below format:&lt;/P&gt;

&lt;P&gt;A ~~ B ~~ C ~~ D ~~ E&lt;BR /&gt;
1 ~~ 2 ~~ 3 ~~ 4 ~~ 5&lt;BR /&gt;
2 ~~ 3 ~~ 4 ~~ 5 ~~ 6&lt;BR /&gt;
1 ~~ 3 ~~ 2 ~~ 3 ~~ 4&lt;/P&gt;

&lt;P&gt;The above has 3 events and five fields A,B,C,D,E&lt;/P&gt;

&lt;P&gt;I tried HEADER_FIELD_LINE_NUMBER = 1 in props.conf&lt;BR /&gt;
DELIMS = "~~" in transforms.conf&lt;BR /&gt;
This did not do the trick.&lt;/P&gt;

&lt;P&gt;what am I missing here?&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 18:33:13 GMT</pubDate>
    <dc:creator>khreddy</dc:creator>
    <dc:date>2020-09-29T18:33:13Z</dc:date>
    <item>
      <title>How do I load the custom delimited file with header into splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-load-the-custom-delimited-file-with-header-into-splunk/m-p/360684#M65786</link>
      <description>&lt;P&gt;I have a delimited header file of the below format:&lt;/P&gt;

&lt;P&gt;A ~~ B ~~ C ~~ D ~~ E&lt;BR /&gt;
1 ~~ 2 ~~ 3 ~~ 4 ~~ 5&lt;BR /&gt;
2 ~~ 3 ~~ 4 ~~ 5 ~~ 6&lt;BR /&gt;
1 ~~ 3 ~~ 2 ~~ 3 ~~ 4&lt;/P&gt;

&lt;P&gt;The above has 3 events and five fields A,B,C,D,E&lt;/P&gt;

&lt;P&gt;I tried HEADER_FIELD_LINE_NUMBER = 1 in props.conf&lt;BR /&gt;
DELIMS = "~~" in transforms.conf&lt;BR /&gt;
This did not do the trick.&lt;/P&gt;

&lt;P&gt;what am I missing here?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 18:33:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-load-the-custom-delimited-file-with-header-into-splunk/m-p/360684#M65786</guid>
      <dc:creator>khreddy</dc:creator>
      <dc:date>2020-09-29T18:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: How do I load the custom delimited file with header into splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-load-the-custom-delimited-file-with-header-into-splunk/m-p/360685#M65787</link>
      <description>&lt;P&gt;hello there,&lt;/P&gt;

&lt;P&gt;looks like there is a space " " there as well, correct?&lt;BR /&gt;
check out this answer:&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/170826/set-delimiter.html"&gt;https://answers.splunk.com/answers/170826/set-delimiter.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;hope it helps&lt;/P&gt;</description>
      <pubDate>Fri, 16 Mar 2018 01:15:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-load-the-custom-delimited-file-with-header-into-splunk/m-p/360685#M65787</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2018-03-16T01:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: How do I load the custom delimited file with header into splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-load-the-custom-delimited-file-with-header-into-splunk/m-p/360686#M65788</link>
      <description>&lt;P&gt;I think you're sort of mixing solutions here.  If you haven't already, please read up on the &lt;A href="https://wiki.splunk.com/Where_do_I_configure_my_Splunk_settings%3F"&gt;phases of data&lt;/A&gt; in Splunk.&lt;/P&gt;

&lt;P&gt;If you want to do this during the input phase (on your forwarder), then you probably want to play with &lt;A href="https://docs.splunk.com/Documentation/Splunk/7.0.2/Admin/Propsconf#Structured_Data_Header_Extraction_and_configuration"&gt;these settings&lt;/A&gt; in your props.conf on the forwarder.  For example, something like this maybe (didn't verify)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[your sourcetype]
HEADER_FIELD_LINE_NUMBER = 1
HEADER_FIELD_DELIMITER = ~~
FIELD_DELIMITER = ~~
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Or if you want to do it during search time, you can use props/transforms on your search head.  You can probably find a lot of examples like this out here and it's documented in the spec files as well.  Something like this maybe (didn't verify).&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[your sourcetype]
REPORT-my_fields = tilde_fields
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[tilde_fields]
DELIMS = ~~
FIELDS = A,B,C,D,E
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 16 Mar 2018 01:31:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-load-the-custom-delimited-file-with-header-into-splunk/m-p/360686#M65788</guid>
      <dc:creator>maciep</dc:creator>
      <dc:date>2018-03-16T01:31:32Z</dc:date>
    </item>
  </channel>
</rss>

