<?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 with different field name? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Timestamp-with-different-field-name/m-p/91425#M19009</link>
    <description>&lt;P&gt;You can simply use &lt;CODE&gt;TIME_PREFIX&lt;/CODE&gt; and &lt;CODE&gt;TIME_FORMAT&lt;/CODE&gt;. &lt;CODE&gt;TIME_PREFIX&lt;/CODE&gt; specifies a regex that occurs before the timestamp. At the time of indexing, Splunk does not care whether your line is part of a CSV file. For example, if the field is the fourth field, you might use&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_PREFIX = ^(?:[^,]*,){3}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and the &lt;CODE&gt;TIME_FORMAT&lt;/CODE&gt; as appropriate.&lt;/P&gt;</description>
    <pubDate>Fri, 29 Apr 2011 02:41:00 GMT</pubDate>
    <dc:creator>gkanapathy</dc:creator>
    <dc:date>2011-04-29T02:41:00Z</dc:date>
    <item>
      <title>Timestamp with different field name?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timestamp-with-different-field-name/m-p/91423#M19007</link>
      <description>&lt;P&gt;My timestamp is contained in a field called SESSION_TIMESTAMP. Is there a way I can map the Splunk "understood" timestamp to this already extracted field? Splunk keeps making up bizarre timestamps taking place in 2007.&lt;/P&gt;

&lt;P&gt;(*Note: I'm using CSV extraction so it's a little more complicated than a regex or character look-ahead...)&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2011 23:39:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timestamp-with-different-field-name/m-p/91423#M19007</guid>
      <dc:creator>travispowell</dc:creator>
      <dc:date>2011-04-28T23:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp with different field name?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timestamp-with-different-field-name/m-p/91424#M19008</link>
      <description>&lt;P&gt;i.e., I want to know if I can add something to a CONF file, SPLUNK_TIMESTAMP_NAME="SESSION_TIMESTAMP"&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:30:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timestamp-with-different-field-name/m-p/91424#M19008</guid>
      <dc:creator>travispowell</dc:creator>
      <dc:date>2020-09-28T09:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp with different field name?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timestamp-with-different-field-name/m-p/91425#M19009</link>
      <description>&lt;P&gt;You can simply use &lt;CODE&gt;TIME_PREFIX&lt;/CODE&gt; and &lt;CODE&gt;TIME_FORMAT&lt;/CODE&gt;. &lt;CODE&gt;TIME_PREFIX&lt;/CODE&gt; specifies a regex that occurs before the timestamp. At the time of indexing, Splunk does not care whether your line is part of a CSV file. For example, if the field is the fourth field, you might use&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_PREFIX = ^(?:[^,]*,){3}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and the &lt;CODE&gt;TIME_FORMAT&lt;/CODE&gt; as appropriate.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2011 02:41:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timestamp-with-different-field-name/m-p/91425#M19009</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2011-04-29T02:41:00Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp with different field name?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timestamp-with-different-field-name/m-p/91426#M19010</link>
      <description>&lt;P&gt;Gah, okay... thank you. I was hoping there would be something more elegant than this. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2011 15:50:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timestamp-with-different-field-name/m-p/91426#M19010</guid>
      <dc:creator>travispowell</dc:creator>
      <dc:date>2011-04-29T15:50:28Z</dc:date>
    </item>
  </channel>
</rss>

