<?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: Timestamp creation- index time from csv file in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Timestamp-creation-index-time-from-csv-file/m-p/350881#M163223</link>
    <description>&lt;P&gt;yeah, if you have a custom sourcetype then &lt;CODE&gt;TIME_FORMAT=%m%d%y,%H:%M:%S:%3N&lt;/CODE&gt; this would do! &lt;/P&gt;</description>
    <pubDate>Wed, 31 Jan 2018 07:45:38 GMT</pubDate>
    <dc:creator>mayurr98</dc:creator>
    <dc:date>2018-01-31T07:45:38Z</dc:date>
    <item>
      <title>Timestamp creation- index time from csv file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timestamp-creation-index-time-from-csv-file/m-p/350876#M163218</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;I have a situation where the data is in csv format and first two columns have date and time information, my requirement is to create _time using both columns during indexing.&lt;/P&gt;

&lt;P&gt;Sample Logs:&lt;BR /&gt;
012518,12:34:41:163,1&lt;BR /&gt;
012618,16:04:42:100,10&lt;/P&gt;

&lt;P&gt;I am facing problems in creating configs for the same.&lt;/P&gt;

&lt;P&gt;_&lt;BR /&gt;
Regards,&lt;BR /&gt;
Sidhant&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2018 06:41:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timestamp-creation-index-time-from-csv-file/m-p/350876#M163218</guid>
      <dc:creator>sidhantbhayana</dc:creator>
      <dc:date>2018-01-31T06:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp creation- index time from csv file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timestamp-creation-index-time-from-csv-file/m-p/350877#M163219</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;DATE,TIME,COUNT
012518,12:34:41:163,1
012618,16:04:42:100,10
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Can you retrieve it with data source CSV? In my environment _time has been set without any particular settings.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2018 07:18:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timestamp-creation-index-time-from-csv-file/m-p/350877#M163219</guid>
      <dc:creator>HiroshiSatoh</dc:creator>
      <dc:date>2018-01-31T07:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp creation- index time from csv file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timestamp-creation-index-time-from-csv-file/m-p/350878#M163220</link>
      <description>&lt;P&gt;hey, &lt;/P&gt;

&lt;P&gt;Just assign below in inputs.conf wherever your monitor stanza is!&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[&amp;lt;your_monitor_stanza&amp;gt;]
index = &amp;lt;your_index&amp;gt;
sourcetype = csv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Let me know if this helps!&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2018 07:25:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timestamp-creation-index-time-from-csv-file/m-p/350878#M163220</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-01-31T07:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp creation- index time from csv file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timestamp-creation-index-time-from-csv-file/m-p/350879#M163221</link>
      <description>&lt;P&gt;Yes, correct! This is because you are using default sourcetype(csv). I have a custom sourcetype.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2018 07:38:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timestamp-creation-index-time-from-csv-file/m-p/350879#M163221</guid>
      <dc:creator>sidhantbhayana</dc:creator>
      <dc:date>2018-01-31T07:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp creation- index time from csv file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timestamp-creation-index-time-from-csv-file/m-p/350880#M163222</link>
      <description>&lt;P&gt;It helps @mayurr98 , but I have a custom sourcetype, although I could find the solution: TIME_FORMAT=%m%d%y,%H:%M:%S:%3N&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2018 07:40:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timestamp-creation-index-time-from-csv-file/m-p/350880#M163222</guid>
      <dc:creator>sidhantbhayana</dc:creator>
      <dc:date>2018-01-31T07:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp creation- index time from csv file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timestamp-creation-index-time-from-csv-file/m-p/350881#M163223</link>
      <description>&lt;P&gt;yeah, if you have a custom sourcetype then &lt;CODE&gt;TIME_FORMAT=%m%d%y,%H:%M:%S:%3N&lt;/CODE&gt; this would do! &lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2018 07:45:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timestamp-creation-index-time-from-csv-file/m-p/350881#M163223</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-01-31T07:45:38Z</dc:date>
    </item>
  </channel>
</rss>

