<?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 ignore and stop indexing of timestamps from CSV events? (sent from a forwarder) in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-ignore-and-stop-indexing-of-timestamps-from-CSV-events/m-p/263819#M50627</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;No, I don't have time fields, because I use the current time.&lt;BR /&gt;
Splunk only extracts the date_* fields, if it needs to parse the event for a timestamp.&lt;/P&gt;

&lt;P&gt;I understood it in the way, that you don't want to use any time stamp from the raw_ data/ event data.&lt;BR /&gt;
If you want to use the current time but also need the date_* fields, perhaps  i've found one helpful post here on Splunk answers:&lt;BR /&gt;
&lt;A href="+https://answers.splunk.com/answers/198457/why-do-some-events-display-date-fields-and-other-d-1.html"&gt;link text&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I hope this helps.&lt;/P&gt;</description>
    <pubDate>Sun, 06 Dec 2015 14:53:28 GMT</pubDate>
    <dc:creator>inko6nito</dc:creator>
    <dc:date>2015-12-06T14:53:28Z</dc:date>
    <item>
      <title>How to ignore and stop indexing of timestamps from CSV events? (sent from a forwarder)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-ignore-and-stop-indexing-of-timestamps-from-CSV-events/m-p/263815#M50623</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am almost stuck on this for three days now. I am unable to stop indexing of the timestamp from the events. But when I set &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;DATETIME_CONFIG = NONE&lt;/CODE&gt; or &lt;CODE&gt;DATETIME_CONFIG = CURRENT&lt;/CODE&gt;I am unable to the see the fields of the CSV file. I even explicitly specified the &lt;CODE&gt;DELIMS=","&lt;/CODE&gt; &amp;amp; &lt;CODE&gt;FIELDS_NAME="field1","field2","field3"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Below are the details of configuration and sample event: (Commented options are which I have tested, but not working still.)&lt;/P&gt;

&lt;P&gt;This is my props.conf (&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.1511/Admin/Propsconf?utm_source=answers&amp;amp;utm_medium=in-answer&amp;amp;utm_term=props.conf&amp;amp;utm_campaign=refdoc#props.conf.example"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.1511/Admin/Propsconf?utm_source=answers&amp;amp;utm_medium=in-answer&amp;amp;utm_term=props.conf&amp;amp;utm_campaign=refdoc#props.conf.example&lt;/A&gt; )&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[custom_csv]
DATETIME_CONFIG = NONE
MAX_TIMESTAMP_LOOKAHEAD = 0
SHOULD_LINEMERGE = False
#pulldown_type = true
#INDEXED_EXTRACTIONS = csv
#FIELD_DELIMITER=,
#HEADER_FIELD_DELIMITER=,
#KV_MODE = none
#category = Structured
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Sample events:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;User ID,First Name,Last Name,Account Enabled,User Locked,Serial Number,Token Type,Token Lost,Token Expiration Date,PIN Type,Token Enabled,Date Last Logged In,Days Since Last Log In

xy111111,Firstname,lastname,Yes,FALSE,xxxxx,myID 200,FALSE,9/30/2016 4:00,code,Yes,11/28/2015 9:13,0
xz000000,first Name,last Name,Yes,FALSE,xxxxxx,myID 700,FALSE,10/31/2016 4:00,code,Yes,7/4/2014 1:37,513
yz222222,firstname,Last Name,Yes,FALSE,xxxxxx,myID 300,FALSE,5/31/2019 4:00,code,Yes,9/9/2014 8:34,445
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Main problem is caused by field Expiration Date field which is in Future and 4:00 is considered as time for the events.&lt;/P&gt;

&lt;P&gt;Can anyone shed some light if I am missing something.? Or is it a bug in 6.3.1 we are running the latest version.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Sun, 06 Dec 2015 10:13:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-ignore-and-stop-indexing-of-timestamps-from-CSV-events/m-p/263815#M50623</guid>
      <dc:creator>krish3</dc:creator>
      <dc:date>2015-12-06T10:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to ignore and stop indexing of timestamps from CSV events? (sent from a forwarder)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-ignore-and-stop-indexing-of-timestamps-from-CSV-events/m-p/263816#M50624</link>
      <description>&lt;P&gt;inputs.conf is simple. Below is the inputs.conf stanza&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///opt/metrics_log_upload/rsa/*.csv]
sourcetype = custom_csv
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 06 Dec 2015 10:32:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-ignore-and-stop-indexing-of-timestamps-from-CSV-events/m-p/263816#M50624</guid>
      <dc:creator>krish3</dc:creator>
      <dc:date>2015-12-06T10:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to ignore and stop indexing of timestamps from CSV events? (sent from a forwarder)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-ignore-and-stop-indexing-of-timestamps-from-CSV-events/m-p/263817#M50625</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
I've tried it with your sample events.  It worked for me with the following props.conf content:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[custom_csv]
DATETIME_CONFIG = CURRENT
INDEXED_EXTRACTIONS = csv
KV_MODE = none
NO_BINARY_CHECK = true
SHOULD_LINEMERGE = false
category = Structured
disabled = false
pulldown_type = true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The date is then the current time stamp, all your fields are recognized.&lt;/P&gt;</description>
      <pubDate>Sun, 06 Dec 2015 11:33:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-ignore-and-stop-indexing-of-timestamps-from-CSV-events/m-p/263817#M50625</guid>
      <dc:creator>inko6nito</dc:creator>
      <dc:date>2015-12-06T11:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to ignore and stop indexing of timestamps from CSV events? (sent from a forwarder)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-ignore-and-stop-indexing-of-timestamps-from-CSV-events/m-p/263818#M50626</link>
      <description>&lt;P&gt;Hi Cab you let me know if you are seeing any date_hour,date_min or date_mday such fields.&lt;/P&gt;

&lt;P&gt;Because i was getting these date_* fields because of which my fields were distributed everywhere&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:04:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-ignore-and-stop-indexing-of-timestamps-from-CSV-events/m-p/263818#M50626</guid>
      <dc:creator>krish3</dc:creator>
      <dc:date>2020-09-29T08:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to ignore and stop indexing of timestamps from CSV events? (sent from a forwarder)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-ignore-and-stop-indexing-of-timestamps-from-CSV-events/m-p/263819#M50627</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;No, I don't have time fields, because I use the current time.&lt;BR /&gt;
Splunk only extracts the date_* fields, if it needs to parse the event for a timestamp.&lt;/P&gt;

&lt;P&gt;I understood it in the way, that you don't want to use any time stamp from the raw_ data/ event data.&lt;BR /&gt;
If you want to use the current time but also need the date_* fields, perhaps  i've found one helpful post here on Splunk answers:&lt;BR /&gt;
&lt;A href="+https://answers.splunk.com/answers/198457/why-do-some-events-display-date-fields-and-other-d-1.html"&gt;link text&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I hope this helps.&lt;/P&gt;</description>
      <pubDate>Sun, 06 Dec 2015 14:53:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-ignore-and-stop-indexing-of-timestamps-from-CSV-events/m-p/263819#M50627</guid>
      <dc:creator>inko6nito</dc:creator>
      <dc:date>2015-12-06T14:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to ignore and stop indexing of timestamps from CSV events? (sent from a forwarder)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-ignore-and-stop-indexing-of-timestamps-from-CSV-events/m-p/263820#M50628</link>
      <description>&lt;P&gt;hi i do not need date_* fields even if i set datetime_config to current i still get date_* from events values...&lt;/P&gt;

&lt;P&gt;Can you please let me know how i can eliminate that values of date_* values&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:05:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-ignore-and-stop-indexing-of-timestamps-from-CSV-events/m-p/263820#M50628</guid>
      <dc:creator>krish3</dc:creator>
      <dc:date>2020-09-29T08:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to ignore and stop indexing of timestamps from CSV events? (sent from a forwarder)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-ignore-and-stop-indexing-of-timestamps-from-CSV-events/m-p/263821#M50629</link>
      <description>&lt;P&gt;Hello. choose one or more fields in your event, and Add  this attribute in your &lt;STRONG&gt;props.conf&lt;/STRONG&gt; file, to tell Splunk  to specify all such fields which constitute the timestamp&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIMESTAMP_FIELDS = field1,field2,...,fieldn
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;eg: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIMESTAMP_FIELDS = "Date Last Logged In"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 06 Dec 2015 17:10:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-ignore-and-stop-indexing-of-timestamps-from-CSV-events/m-p/263821#M50629</guid>
      <dc:creator>stephanefotso</dc:creator>
      <dc:date>2015-12-06T17:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to ignore and stop indexing of timestamps from CSV events? (sent from a forwarder)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-ignore-and-stop-indexing-of-timestamps-from-CSV-events/m-p/263822#M50630</link>
      <description>&lt;P&gt;Hi Stephan,&lt;/P&gt;

&lt;P&gt;But my query was I do not want any timestamps to be present in date_* fields. timestamp should not be parsed at all. &lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2015 05:08:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-ignore-and-stop-indexing-of-timestamps-from-CSV-events/m-p/263822#M50630</guid>
      <dc:creator>krish3</dc:creator>
      <dc:date>2015-12-07T05:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to ignore and stop indexing of timestamps from CSV events? (sent from a forwarder)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-ignore-and-stop-indexing-of-timestamps-from-CSV-events/m-p/263823#M50631</link>
      <description>&lt;P&gt;Hey ho,&lt;/P&gt;

&lt;P&gt;with my props.conf content you should not get any date_* fields. It worked for me.&lt;BR /&gt;
Did you try it with the props.conf from me? With new indexed data it should worked, but it has no effect on data which is already indexed&lt;/P&gt;

&lt;P&gt;For the data Splunk has already indexed, i don't know a way how to delete the date_* fields. You have to reindex the data for this. This means, you need to clean the fishbucket.&lt;/P&gt;

&lt;P&gt;I would first check, if it works with the props.conf from me. Just try it with your sample event data and a one shot file input.&lt;BR /&gt;
If it works, you can use&lt;BR /&gt;
 1. the command "splunk clean eventdata" to reindex the file. ATTENTION: this will reindex all file monitors in the splunk instance&lt;BR /&gt;
 or&lt;BR /&gt;
 2. splunk cmd btprobe -d $SPLUNK_HOME/var/lib/splunk/fishbucket splunk_private_db --file [file_to_reindex] --reset  -&amp;gt; Splunk will only reindex the data of the given file&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:05:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-ignore-and-stop-indexing-of-timestamps-from-CSV-events/m-p/263823#M50631</guid>
      <dc:creator>inko6nito</dc:creator>
      <dc:date>2020-09-29T08:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to ignore and stop indexing of timestamps from CSV events? (sent from a forwarder)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-ignore-and-stop-indexing-of-timestamps-from-CSV-events/m-p/263824#M50632</link>
      <description>&lt;P&gt;The problem may be where you are deploying the configuration files, whether you have restarted splunk and what are your expectations regarding already-indexed events.&lt;/P&gt;

&lt;P&gt;Did you restart the Splunk instances on the Forwarders wherever you may have changed &lt;CODE&gt;inputs.conf&lt;/CODE&gt; (e.g. the &lt;CODE&gt;sourctype&lt;/CODE&gt; may not have updated so the new value is not referencing into &lt;CODE&gt;props.conf&lt;/CODE&gt; correctly)?  Did you restart the Splunk instances on the Indexers where you put &lt;CODE&gt;props.conf&lt;/CODE&gt; and &lt;CODE&gt;transforms.conf&lt;/CODE&gt; (or on your Forwarders if using Heavy Forwarders or &lt;CODE&gt;INDEXED_EXTRACTIONS&lt;/CODE&gt;)?  Double-check this list:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;* The sourcetype matches replace_sourcetype_with_containing_directory exactly (casing, punctuation, etc.).
* The props.conf and transforms.conf configuration files are deployed to the Indexers or Heavy Forwarders (or Universal Forwarders in some cases, such as INDEXED_EXTRACTIONS = CSV).
* The inputs.conf configuration file is deployed to the Forwarder.
* You must restart/bounce all Splunk instances on the servers where you deploy these files.
* There are no configuration errors during restart (watch the response text during startup on one server of each type).
* You are verifying proper current function by looking at NEW data (post-deploy/post-bounce), not previously indexed data (which is immutable).
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 08 Dec 2015 16:25:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-ignore-and-stop-indexing-of-timestamps-from-CSV-events/m-p/263824#M50632</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-12-08T16:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to ignore and stop indexing of timestamps from CSV events? (sent from a forwarder)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-ignore-and-stop-indexing-of-timestamps-from-CSV-events/m-p/605295#M105225</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/61361"&gt;@krish3&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;This i a very old post but maybe worth a try - did you fix the csv input?&lt;BR /&gt;Im currently facing the same to force the timestamp of the current time and not using the timestamp written into the csv...&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2022 12:59:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-ignore-and-stop-indexing-of-timestamps-from-CSV-events/m-p/605295#M105225</guid>
      <dc:creator>FlorianScho</dc:creator>
      <dc:date>2022-07-12T12:59:31Z</dc:date>
    </item>
  </channel>
</rss>

