<?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: Extract data from text file  without Headers in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Extract-data-from-text-file-without-Headers/m-p/148764#M185427</link>
    <description>&lt;P&gt;Also, please let me know if this can be done from splunk forwarders or do we need to go to splunk searchhead.Please let me know in case I need to do any changes from splunk UI as well&lt;/P&gt;</description>
    <pubDate>Tue, 19 Nov 2013 23:11:41 GMT</pubDate>
    <dc:creator>shilpi</dc:creator>
    <dc:date>2013-11-19T23:11:41Z</dc:date>
    <item>
      <title>Extract data from text file  without Headers</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-data-from-text-file-without-Headers/m-p/148762#M185425</link>
      <description>&lt;P&gt;I have a text with values separated by spaces.This file does not have any headers. I need to add headers to this file and use this file in splunk. I can not manually do that as I will be getting a similar file every 15 minutes daily. Is there any way to do it using field extraction or something else in splunk?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2013 22:48:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-data-from-text-file-without-Headers/m-p/148762#M185425</guid>
      <dc:creator>shilpi</dc:creator>
      <dc:date>2013-11-19T22:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: Extract data from text file  without Headers</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-data-from-text-file-without-Headers/m-p/148763#M185426</link>
      <description>&lt;P&gt;Space separated files are easy to index if the files all have the same field composition.&lt;BR /&gt;
If you could put a header in every file, would it always be the same header?  If so, post it.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2013 22:55:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-data-from-text-file-without-Headers/m-p/148763#M185426</guid>
      <dc:creator>lukejadamec</dc:creator>
      <dc:date>2013-11-19T22:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: Extract data from text file  without Headers</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-data-from-text-file-without-Headers/m-p/148764#M185427</link>
      <description>&lt;P&gt;Also, please let me know if this can be done from splunk forwarders or do we need to go to splunk searchhead.Please let me know in case I need to do any changes from splunk UI as well&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2013 23:11:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-data-from-text-file-without-Headers/m-p/148764#M185427</guid>
      <dc:creator>shilpi</dc:creator>
      <dc:date>2013-11-19T23:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: Extract data from text file  without Headers</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-data-from-text-file-without-Headers/m-p/148765#M185428</link>
      <description>&lt;P&gt;Yeah header will always be the same&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2013 23:12:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-data-from-text-file-without-Headers/m-p/148765#M185428</guid>
      <dc:creator>shilpi</dc:creator>
      <dc:date>2013-11-19T23:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: Extract data from text file  without Headers</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-data-from-text-file-without-Headers/m-p/148766#M185429</link>
      <description>&lt;P&gt;Can you post the header, or some obfuscated reference header that you'll understand when we stick it in a configuration example?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2013 23:15:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-data-from-text-file-without-Headers/m-p/148766#M185429</guid>
      <dc:creator>lukejadamec</dc:creator>
      <dc:date>2013-11-19T23:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: Extract data from text file  without Headers</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-data-from-text-file-without-Headers/m-p/148767#M185430</link>
      <description>&lt;P&gt;The inputs.conf file needs to be on the forwarder that is monitoring the log directory.  The props.conf and transforms.conf should be in the splunk\etc\system\local\ directory of the indexer.  If those files don’t exist, then create them – make sure they have a .conf extension and not a .conf.txt extension.&lt;BR /&gt;
You may need to further refine the configs, but if so you’ll need to provide more information.&lt;/P&gt;

&lt;P&gt;inputs.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://blankpathtofiledirectory]
disabled = false
index = default
sourcetype = yourblanksourcetype
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[yourblanksourcetype]
SHOULD_LINEMERGE = false
TIME_FORMAT = blank
MAX_TIMESTAMP_LOOKAHEAD = blank
REPORT-spaced = spacedfields
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[spacedfields]
DELIMS = “ “
FIELDS =  list of comma separated fields
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 19 Nov 2013 23:33:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-data-from-text-file-without-Headers/m-p/148767#M185430</guid>
      <dc:creator>lukejadamec</dc:creator>
      <dc:date>2013-11-19T23:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: Extract data from text file  without Headers</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-data-from-text-file-without-Headers/m-p/148768#M185431</link>
      <description>&lt;P&gt;why the explicit use of 'blank'? &lt;/P&gt;

&lt;P&gt;/K&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2013 10:04:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-data-from-text-file-without-Headers/m-p/148768#M185431</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-11-20T10:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: Extract data from text file  without Headers</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-data-from-text-file-without-Headers/m-p/148769#M185432</link>
      <description>&lt;P&gt;So the person asking the question knows where information is missing.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2013 15:59:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-data-from-text-file-without-Headers/m-p/148769#M185432</guid>
      <dc:creator>lukejadamec</dc:creator>
      <dc:date>2013-11-20T15:59:31Z</dc:date>
    </item>
  </channel>
</rss>

