<?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 can I mix extracted and current timestamps when ingesting data? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/can-I-mix-extracted-and-current-timestamps-when-ingesting-data/m-p/242984#M47090</link>
    <description>&lt;P&gt;I have a CSV dataset with (only) a year field. I'd like to use the year as a partial timestamp on the events and then use either January 1 12:00 or the current datetime for the rest of the timestamp. Is that possible? I've been playing around with TIME_FORMAT trying things like &lt;BR /&gt;
%Y/1/1:12:00, but I haven't gotten anything to work yet.&lt;/P&gt;</description>
    <pubDate>Sat, 26 Sep 2015 11:52:36 GMT</pubDate>
    <dc:creator>cphair</dc:creator>
    <dc:date>2015-09-26T11:52:36Z</dc:date>
    <item>
      <title>can I mix extracted and current timestamps when ingesting data?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/can-I-mix-extracted-and-current-timestamps-when-ingesting-data/m-p/242984#M47090</link>
      <description>&lt;P&gt;I have a CSV dataset with (only) a year field. I'd like to use the year as a partial timestamp on the events and then use either January 1 12:00 or the current datetime for the rest of the timestamp. Is that possible? I've been playing around with TIME_FORMAT trying things like &lt;BR /&gt;
%Y/1/1:12:00, but I haven't gotten anything to work yet.&lt;/P&gt;</description>
      <pubDate>Sat, 26 Sep 2015 11:52:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/can-I-mix-extracted-and-current-timestamps-when-ingesting-data/m-p/242984#M47090</guid>
      <dc:creator>cphair</dc:creator>
      <dc:date>2015-09-26T11:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: can I mix extracted and current timestamps when ingesting data?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/can-I-mix-extracted-and-current-timestamps-when-ingesting-data/m-p/242985#M47091</link>
      <description>&lt;P&gt;Not sure if that's possible.  Do you have the ability to change the format of that field to include the date you want?  Or add other fields for month/day/time that you could use to build the timestamp?&lt;/P&gt;

&lt;P&gt;The TIME_FORMAT setting tells splunk how to identify the timestamp in the event, not what to set it to.  Since you only have the year field, it obviously won't find the rest of the timestamp you have in there.&lt;/P&gt;</description>
      <pubDate>Sat, 26 Sep 2015 17:33:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/can-I-mix-extracted-and-current-timestamps-when-ingesting-data/m-p/242985#M47091</guid>
      <dc:creator>maciep</dc:creator>
      <dc:date>2015-09-26T17:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: can I mix extracted and current timestamps when ingesting data?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/can-I-mix-extracted-and-current-timestamps-when-ingesting-data/m-p/242986#M47092</link>
      <description>&lt;P&gt;Technically I could edit the created file, but there are a bunch like this. I don't have the ability to change the source. There's no other date information in the events.&lt;/P&gt;</description>
      <pubDate>Sun, 27 Sep 2015 00:08:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/can-I-mix-extracted-and-current-timestamps-when-ingesting-data/m-p/242986#M47092</guid>
      <dc:creator>cphair</dc:creator>
      <dc:date>2015-09-27T00:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: can I mix extracted and current timestamps when ingesting data?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/can-I-mix-extracted-and-current-timestamps-when-ingesting-data/m-p/242987#M47093</link>
      <description>&lt;P&gt;You can do this but it takes 2 steps and bloats your events.  First you use a &lt;CODE&gt;SEDCMD&lt;/CODE&gt; to modify your timestamp to add month and day.  Then you do your normal stuff.  Assuming that the first 4 characters are the year, try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SEDCMD-add_January_First_at_Noon = s/^(\d{4})/\1\/1\/1:12:00/
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Sep 2015 08:19:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/can-I-mix-extracted-and-current-timestamps-when-ingesting-data/m-p/242987#M47093</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-09-28T08:19:28Z</dc:date>
    </item>
  </channel>
</rss>

