<?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 configure Splunk to recognize the correct timestamp from tshark data output and index all remaining fields properly? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-Splunk-to-recognize-the-correct-timestamp-from/m-p/141335#M28958</link>
    <description>&lt;P&gt;Since you have multiple time stamps in the event, you need select the right one for Splunk to recognize.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.2/Data/Configuretimestamprecognition"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.2/Data/Configuretimestamprecognition&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Your format should be the :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Apr  2, 2015 13:46:32.116002000
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Portion from your log.&lt;/P&gt;

&lt;P&gt;So in your props, your timestamp format should be something like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_FORMAT =%b, %Y %H:%M:%S.%9N
TIME_PREFIX= \t
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I'm not sure if there is a tab, you could also try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_PREFIX = (AM\s|PM\s)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;That looks for AM OR PM   (not its followed by a space. That might be a tab in your log..)&lt;/P&gt;</description>
    <pubDate>Sat, 11 Apr 2015 05:16:36 GMT</pubDate>
    <dc:creator>esix_splunk</dc:creator>
    <dc:date>2015-04-11T05:16:36Z</dc:date>
    <item>
      <title>How to configure Splunk to recognize the correct timestamp from tshark data output and index all remaining fields properly?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-Splunk-to-recognize-the-correct-timestamp-from/m-p/141334#M28957</link>
      <description>&lt;P&gt;I'm using tshark to carve out and send specific fields to a txt file, in hopes splunk will index it properly. But not only is the date field misinterpreted, all data after the data is ignored (not indexed).&lt;/P&gt;

&lt;P&gt;This is what is what I see in the Data Preview when I attempt to create a new source type:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;1 2/3/02 2:13:22.116 PM Apr  2, 2015 13:46:32.116002000 192.168.2.64    59356   123.123.123.1   443

2 2/3/02 2:13:22.398 PM Apr  2, 2015 13:46:32.398707000 192.168.130.207 57524   122.122.122.1   443

3 2/3/02 2:13:22.415 PM Apr  2, 2015 13:46:32.415975000 192.168.231.22  51513   121.121.121.1   443
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Note the interpreted date is 2/3/2002 vs the actual date in 2015. &lt;/P&gt;

&lt;P&gt;Using notepad++ I can see the data elements are separated by TABs. It seems once splunk thinks it did a fine job on the date, it believes the 1st tab (just after the date/time) is the end of line so, it seems, it ignores everything until it sees the next date.&lt;/P&gt;

&lt;P&gt;Having read several questions/answers leads me to believe data from tshark should be easily recognized and indexed.&lt;/P&gt;

&lt;P&gt;my tshark command is:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;tshark -r myInputFile.raw tcp.flags.syn eq 0x1 -T fields -e frame.time -e ip.src -e tcp.srcport -e ip.dst -e tcp.dstport &amp;gt; myOutputFile.txt
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;My Question - how can I get each data element to be indexed properly?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2015 21:31:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-Splunk-to-recognize-the-correct-timestamp-from/m-p/141334#M28957</guid>
      <dc:creator>mikefoti</dc:creator>
      <dc:date>2015-04-10T21:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Splunk to recognize the correct timestamp from tshark data output and index all remaining fields properly?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-Splunk-to-recognize-the-correct-timestamp-from/m-p/141335#M28958</link>
      <description>&lt;P&gt;Since you have multiple time stamps in the event, you need select the right one for Splunk to recognize.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.2/Data/Configuretimestamprecognition"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.2/Data/Configuretimestamprecognition&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Your format should be the :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Apr  2, 2015 13:46:32.116002000
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Portion from your log.&lt;/P&gt;

&lt;P&gt;So in your props, your timestamp format should be something like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_FORMAT =%b, %Y %H:%M:%S.%9N
TIME_PREFIX= \t
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I'm not sure if there is a tab, you could also try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_PREFIX = (AM\s|PM\s)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;That looks for AM OR PM   (not its followed by a space. That might be a tab in your log..)&lt;/P&gt;</description>
      <pubDate>Sat, 11 Apr 2015 05:16:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-Splunk-to-recognize-the-correct-timestamp-from/m-p/141335#M28958</guid>
      <dc:creator>esix_splunk</dc:creator>
      <dc:date>2015-04-11T05:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Splunk to recognize the correct timestamp from tshark data output and index all remaining fields properly?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-Splunk-to-recognize-the-correct-timestamp-from/m-p/141336#M28959</link>
      <description>&lt;P&gt;Esix_splunk, &lt;BR /&gt;
Thanks... once I added %d after %b, it worked.&lt;/P&gt;

&lt;P&gt;TIME_FORMAT =%b %d, %Y %H:%M:%S.%9N&lt;/P&gt;</description>
      <pubDate>Mon, 13 Apr 2015 20:25:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-Splunk-to-recognize-the-correct-timestamp-from/m-p/141336#M28959</guid>
      <dc:creator>mikefoti</dc:creator>
      <dc:date>2015-04-13T20:25:44Z</dc:date>
    </item>
  </channel>
</rss>

