<?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 to apply a custom TIME_FORMAT specific to source with a wildcard in Props.conf? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-apply-a-custom-TIME-FORMAT-specific-to-source-with-a/m-p/135041#M36919</link>
    <description>&lt;P&gt;I am trying to apply a custom TIME_FORMAT to a wildcarded source in props.conf, but Splunk doesn't seem to be applying it (i.e. Splunk still shows the wrong _time in my search against this source). &lt;/P&gt;

&lt;P&gt;What am I doing something wrong?&lt;/P&gt;

&lt;P&gt;Example source:&lt;BR /&gt;
     &lt;CODE&gt;albatross-b827e88ab79c.vsat.20150209.speedtest.csv&lt;/CODE&gt;&lt;BR /&gt;
My entry in props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;   [source::*speedtest.csv]
   TIME_FORMAT = %Y%m%d%H%M
   TIME_PREFIX = ^
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Sample event:&lt;BR /&gt;
&lt;CODE&gt;201502062345,albatross-b827ebe142fe.vsat,12.23,Mb,3.30,Mb&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 10 Feb 2015 18:23:17 GMT</pubDate>
    <dc:creator>masonmorales</dc:creator>
    <dc:date>2015-02-10T18:23:17Z</dc:date>
    <item>
      <title>How to apply a custom TIME_FORMAT specific to source with a wildcard in Props.conf?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-apply-a-custom-TIME-FORMAT-specific-to-source-with-a/m-p/135041#M36919</link>
      <description>&lt;P&gt;I am trying to apply a custom TIME_FORMAT to a wildcarded source in props.conf, but Splunk doesn't seem to be applying it (i.e. Splunk still shows the wrong _time in my search against this source). &lt;/P&gt;

&lt;P&gt;What am I doing something wrong?&lt;/P&gt;

&lt;P&gt;Example source:&lt;BR /&gt;
     &lt;CODE&gt;albatross-b827e88ab79c.vsat.20150209.speedtest.csv&lt;/CODE&gt;&lt;BR /&gt;
My entry in props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;   [source::*speedtest.csv]
   TIME_FORMAT = %Y%m%d%H%M
   TIME_PREFIX = ^
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Sample event:&lt;BR /&gt;
&lt;CODE&gt;201502062345,albatross-b827ebe142fe.vsat,12.23,Mb,3.30,Mb&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Feb 2015 18:23:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-apply-a-custom-TIME-FORMAT-specific-to-source-with-a/m-p/135041#M36919</guid>
      <dc:creator>masonmorales</dc:creator>
      <dc:date>2015-02-10T18:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to apply a custom TIME_FORMAT specific to source with a wildcard in Props.conf?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-apply-a-custom-TIME-FORMAT-specific-to-source-with-a/m-p/135042#M36920</link>
      <description>&lt;P&gt;Since your timestamps are the beginning of each event, you don't need TIME_PREFIX.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Feb 2015 18:52:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-apply-a-custom-TIME-FORMAT-specific-to-source-with-a/m-p/135042#M36920</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2015-02-10T18:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to apply a custom TIME_FORMAT specific to source with a wildcard in Props.conf?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-apply-a-custom-TIME-FORMAT-specific-to-source-with-a/m-p/135043#M36921</link>
      <description>&lt;P&gt;Right, it still wouldn't recognize it without TIME_PREFIX though. I am starting to think you can't apply TIME_FORMAT to a source because I couldn't find an example in the props.conf.spec.&lt;/P&gt;

&lt;P&gt;I worked around the issue by re-indexing the data under a new sourcetype I created with the time_format settings.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:53:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-apply-a-custom-TIME-FORMAT-specific-to-source-with-a/m-p/135043#M36921</guid>
      <dc:creator>masonmorales</dc:creator>
      <dc:date>2020-09-28T18:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to apply a custom TIME_FORMAT specific to source with a wildcard in Props.conf?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-apply-a-custom-TIME-FORMAT-specific-to-source-with-a/m-p/135044#M36922</link>
      <description>&lt;P&gt;I would add a  MAX_TIMESTAMP_LOOKAHEAD = 20 ... (it has been helpfull to me in the past) just to make sure SPlunk does not reads to long into the file, since it is in the beginning.&lt;/P&gt;

&lt;P&gt;I can also recommend the "Data preview" function that exists in SPlunk now ... it will display / help you with this sorts of problems.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:56:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-apply-a-custom-TIME-FORMAT-specific-to-source-with-a/m-p/135044#M36922</guid>
      <dc:creator>lmyrefelt</dc:creator>
      <dc:date>2020-09-28T18:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to apply a custom TIME_FORMAT specific to source with a wildcard in Props.conf?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-apply-a-custom-TIME-FORMAT-specific-to-source-with-a/m-p/135045#M36923</link>
      <description>&lt;P&gt;I believe that there is a bug with using a wildcard with a source in props.conf -- the wildcard pattern only works in some scenarios.  We have seen issues with * specifically.&lt;/P&gt;

&lt;P&gt;Support acknowledges but has not fixed.  Documentation should be updated to reflect not to use asterisk as a wildcard, use ... instead.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jun 2015 23:43:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-apply-a-custom-TIME-FORMAT-specific-to-source-with-a/m-p/135045#M36923</guid>
      <dc:creator>the_wolverine</dc:creator>
      <dc:date>2015-06-01T23:43:01Z</dc:date>
    </item>
  </channel>
</rss>

