<?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: Splunk not indexing data if time contains a colon in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-not-indexing-data-if-time-contains-a-colon/m-p/89603#M18596</link>
    <description>&lt;P&gt;Hi Kristian, this definitely helped. I can see now that splunk was indexing my data using the login_time as the timestamp value of the record which is not the behaviour I'm after. I've attampted to disable this without success (I'll update the OP with my config files).&lt;/P&gt;</description>
    <pubDate>Wed, 16 Jan 2013 15:11:14 GMT</pubDate>
    <dc:creator>caatplan_mike</dc:creator>
    <dc:date>2013-01-16T15:11:14Z</dc:date>
    <item>
      <title>Splunk not indexing data if time contains a colon</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-not-indexing-data-if-time-contains-a-colon/m-p/89601#M18594</link>
      <description>&lt;P&gt;I've having an odd issue with Splunk. I'm attempting a scripted input that outputs current users logged into an oracle database and am formatting the login date value as yyyy-mm-dd hh24:mi:ss. This seems like a reasonable time format.&lt;/P&gt;

&lt;P&gt;Splunk seems to have a problem with the : in the time. Looking in splunkd.log, everything looks fine. eg. "Ran script: /opt/splunkforwarder/etc/apps/scripts/bin/oracle_who, took 81.59 milliseconds to run, 1825 bytes read". But if I look for the data in splunk, it's nowhere to be found.&lt;/P&gt;

&lt;P&gt;If I change the time separator to a space, Splunk indexes the data, but I'm not sure it recognizes the values as a time value.&lt;/P&gt;

&lt;P&gt;Here's sample of the data that is ignored by Splunk.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;build,bob,152,42901,bob,terminal02,toad.exe,2013-01-14 17:22:10
build,sue,154,21447,sue,terminal01,toad.exe,2013-01-14 17:22:15
build,jim,195,34447,jim,unknown,sql developer,2013-01-14 13:50:49
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Here's a sample of data that is indexed by Splunk successfully.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;build,bob,152,42901,bob,terminal02,toad.exe,2013-01-14 17 22 10
build,sue,154,21447,sue,terminal01,toad.exe,2013-01-14 17 22 15
build,jim,195,34447,jim,unknown,sql developer,2013-01-14 13 50 49
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Using colon as a field separator works fine too.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;build:bob:152:42901:bob:terminal02:toad.exe:2013-01-14 17 22 10
build:sue:154:21447:sue:terminal01:toad.exe:2013-01-14 17 22 15
build:jim:195:34447:jim:unknown:sql developer:2013-01-14 13 50 49
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I'd prefer to keep the colons in the time value since it's pretty standard, but I'm not adverse to formatting the time in a different way if it's usually done some other way.&lt;/P&gt;

&lt;P&gt;I'm running Splunk 5.0.1 on both the forwarder and the indexer.&lt;/P&gt;

&lt;P&gt;--UPDATE--&lt;/P&gt;

&lt;P&gt;It's now clear splunk was using the login time as the timestamp which isn't what I'm after. I'd like Splunk to use the current time as the timestamp. I read through the props.conf.spec and have made the following configuration files, but they don't seem to be having the desired effect. All config files are located in /opt/splunkforwarder/etc/apps/scripts/default.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;inputs.conf&lt;/STRONG&gt; &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[script:///opt/splunkforwarder/etc/apps/scripts/bin/oracle_who]
interval = 300
sourcetype = oracle_who
source = script://./bin/oracle_who
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;props.conf&lt;/STRONG&gt; &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[oracle_who]
REPORT-oracle_who-fields = extract-oracle_who-fields
DATETIME_CONFIG = NONE
SHOULD_LINEMERGE = false
BREAK_ONLY_BEFORE_DATE = false
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;transforms.conf&lt;/STRONG&gt; &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[extract-oracle_who-fields]
DELIMS = ","
FIELDS = instance, username, sid, serial, osuser, host, program, login_time
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I used this document for developing my scripted input: &lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.1/Data/Setupcustominputs#Example_using_inputs.conf"&gt;http://docs.splunk.com/Documentation/Splunk/5.0.1/Data/Setupcustominputs#Example_using_inputs.conf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2013 14:23:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-not-indexing-data-if-time-contains-a-colon/m-p/89601#M18594</guid>
      <dc:creator>caatplan_mike</dc:creator>
      <dc:date>2013-01-16T14:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk not indexing data if time contains a colon</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-not-indexing-data-if-time-contains-a-colon/m-p/89602#M18595</link>
      <description>&lt;P&gt;I guess a good place to start is to check out the &lt;CODE&gt;TIME_FORMAT&lt;/CODE&gt;, &lt;CODE&gt;TIME_PREFIX&lt;/CODE&gt; and &lt;CODE&gt;MAX_TIMESTAMP_LOOKAHEAD&lt;/CODE&gt; parameters that can be set for your source/sourcetype in &lt;CODE&gt;props.conf&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.1/Admin/Propsconf"&gt;http://docs.splunk.com/Documentation/Splunk/5.0.1/Admin/Propsconf&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;hope this helps,&lt;/P&gt;

&lt;P&gt;Kristian&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2013 14:32:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-not-indexing-data-if-time-contains-a-colon/m-p/89602#M18595</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-01-16T14:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk not indexing data if time contains a colon</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-not-indexing-data-if-time-contains-a-colon/m-p/89603#M18596</link>
      <description>&lt;P&gt;Hi Kristian, this definitely helped. I can see now that splunk was indexing my data using the login_time as the timestamp value of the record which is not the behaviour I'm after. I've attampted to disable this without success (I'll update the OP with my config files).&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2013 15:11:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-not-indexing-data-if-time-contains-a-colon/m-p/89603#M18596</guid>
      <dc:creator>caatplan_mike</dc:creator>
      <dc:date>2013-01-16T15:11:14Z</dc:date>
    </item>
  </channel>
</rss>

