<?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: Date without year, wrong index. in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Date-without-year-wrong-index/m-p/47187#M8965</link>
    <description>&lt;P&gt;Not too sure if this applies here, but you could use this;&lt;BR /&gt;
    rename "date_mday" as "Day" "_time" as "Time"  | convert timeformat=%H.%M ctime(Time) |table Day, Time&lt;/P&gt;

&lt;P&gt;What this does is puts it in a table, but it will still show if you click visualization.  Obviously this would require some editing but you could use something similar.&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 17:44:45 GMT</pubDate>
    <dc:creator>markthompson</dc:creator>
    <dc:date>2020-09-28T17:44:45Z</dc:date>
    <item>
      <title>Date without year, wrong index.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Date-without-year-wrong-index/m-p/47183#M8961</link>
      <description>&lt;P&gt;Hello...&lt;/P&gt;

&lt;P&gt;I'm having some trouble in indexing some log files, because of the format they are.&lt;/P&gt;

&lt;P&gt;Example:&lt;/P&gt;

&lt;P&gt;11/12 22:54:31.87:8becc368:02:00:sradisk :  verify requests 7629376 (645/sec) &lt;/P&gt;

&lt;P&gt;As you can see, there's no year on the date. The format is Month/Date only.&lt;/P&gt;

&lt;P&gt;My problem is, Splunk is indexing this like: &lt;/P&gt;

&lt;P&gt;12/22/11&lt;BR /&gt;
10:54:31.800 PM &lt;/P&gt;

&lt;P&gt;So, It's getting the hour of the event and using it as the day. Getting the month and using it as a year, and the day becomes the month! &lt;/P&gt;

&lt;P&gt;I'm wondering if there's a way to solve this, since some of my logs normally does not have the year field.&lt;/P&gt;

&lt;P&gt;Thanks a lot,&lt;/P&gt;

&lt;P&gt;Thiago&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2012 16:35:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Date-without-year-wrong-index/m-p/47183#M8961</guid>
      <dc:creator>psychosb</dc:creator>
      <dc:date>2012-01-10T16:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: Date without year, wrong index.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Date-without-year-wrong-index/m-p/47184#M8962</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I had a similar problem and the following worked for my case:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TZ = Europe/Dublin
TIME_FORMAT = %m/%d %H:%M:%S
EXTRACT-fields = (?im)^((?P&amp;lt;TIMESTAMP&amp;gt;\d{2}/\d{2}\s\d{2}:\d{2}:\d{2})\s
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;in the props.conf file&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/admin/Propsconf"&gt;http://docs.splunk.com/Documentation/Splunk/latest/admin/Propsconf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2012 18:59:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Date-without-year-wrong-index/m-p/47184#M8962</guid>
      <dc:creator>imrago</dc:creator>
      <dc:date>2012-01-10T18:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: Date without year, wrong index.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Date-without-year-wrong-index/m-p/47185#M8963</link>
      <description>&lt;P&gt;Hi there!&lt;/P&gt;

&lt;P&gt;Sorry, but I'm new to Splunk. Where should I put those lines? &lt;/P&gt;

&lt;P&gt;I'm trying to find the file that I can define the personal filters, but can't found it.&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2012 19:07:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Date-without-year-wrong-index/m-p/47185#M8963</guid>
      <dc:creator>psychosb</dc:creator>
      <dc:date>2012-01-10T19:07:10Z</dc:date>
    </item>
    <item>
      <title>Re: Date without year, wrong index.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Date-without-year-wrong-index/m-p/47186#M8964</link>
      <description>&lt;P&gt;the only .conf files that exist by default upon installation of Splunk are the ones in /etc/system/default.&lt;/P&gt;

&lt;P&gt;you must create your own copy of the relevant .conf file in  /etc/system/local to define personal settings. in this particular case, you should first read:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Admin/Aboutconfigurationfiles"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Admin/Aboutconfigurationfiles&lt;/A&gt; for information on how to use configuration files&lt;/P&gt;

&lt;P&gt;and then read: &lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Data/Configuretimestamprecognition"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Data/Configuretimestamprecognition&lt;/A&gt; for specifics on timestamping issues&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2012 19:34:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Date-without-year-wrong-index/m-p/47186#M8964</guid>
      <dc:creator>piebob</dc:creator>
      <dc:date>2012-01-10T19:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: Date without year, wrong index.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Date-without-year-wrong-index/m-p/47187#M8965</link>
      <description>&lt;P&gt;Not too sure if this applies here, but you could use this;&lt;BR /&gt;
    rename "date_mday" as "Day" "_time" as "Time"  | convert timeformat=%H.%M ctime(Time) |table Day, Time&lt;/P&gt;

&lt;P&gt;What this does is puts it in a table, but it will still show if you click visualization.  Obviously this would require some editing but you could use something similar.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:44:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Date-without-year-wrong-index/m-p/47187#M8965</guid>
      <dc:creator>markthompson</dc:creator>
      <dc:date>2020-09-28T17:44:45Z</dc:date>
    </item>
  </channel>
</rss>

