<?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: Reconfigure how timestamps appear in raw data in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Reconfigure-how-timestamps-appear-in-raw-data/m-p/404170#M71772</link>
    <description>&lt;P&gt;These two rows will process to _raw data, but not to _time data.&lt;BR /&gt;
02/04/19 12:50:49,userid,Processing,REV,10,,Dimension 2 Code,Modification,2024,2024,2033,2033&lt;BR /&gt;
05/04/19 06:19:26,userid,Account,000000,,,Last Date Modified,Modification,2018-11-05,11/05/18,2019-04-05,04/05/19&lt;/P&gt;

&lt;P&gt;These two rows have the same date, the second row will process to _raw data and to _time data.  The first row is where I get the error mentioned earlier to _raw data, but for _time data it reverts back to the previous record and converts the _time to 05/04/19.&lt;BR /&gt;
11/04/19 09:08:30,userid,General,,,,Allow From,Modification,2019-03-01,03/01/19,2019-04-01,04/01/19&lt;BR /&gt;
11/04/19 09:08:30,userid,General Setup,,,,Allow To,Modification,2019-04-30,04/30/19,2019-05-01,05/01/19&lt;/P&gt;</description>
    <pubDate>Fri, 07 Jun 2019 12:23:47 GMT</pubDate>
    <dc:creator>sheaross</dc:creator>
    <dc:date>2019-06-07T12:23:47Z</dc:date>
    <item>
      <title>Reconfigure how timestamps appear in raw data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Reconfigure-how-timestamps-appear-in-raw-data/m-p/404160#M71762</link>
      <description>&lt;P&gt;I have a date in a column with the name of Date and Time. &lt;BR /&gt;
The current format is 02/04/19 12:50:49, but it really should be 04/02/2019 12:50:49.&lt;BR /&gt;&lt;BR /&gt;
I've looked in the Splunk documentation "Reconfigure how timestamps appear in raw data", but I can't seem to get it to work.&lt;BR /&gt;
Any help would be great.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Shea&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2019 15:19:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Reconfigure-how-timestamps-appear-in-raw-data/m-p/404160#M71762</guid>
      <dc:creator>sheaross</dc:creator>
      <dc:date>2019-06-04T15:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: Reconfigure how timestamps appear in raw data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Reconfigure-how-timestamps-appear-in-raw-data/m-p/404161#M71763</link>
      <description>&lt;P&gt;If you are referring to the documentation provided here - &lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.6/Data/Configuretimestamprecognition#Configure_how_timestamps_appear_in_search_results"&gt;https://docs.splunk.com/Documentation/Splunk/7.2.6/Data/Configuretimestamprecognition#Configure_how_timestamps_appear_in_search_results&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Additionally,&lt;BR /&gt;
You'd have to take care of the sequence of rules you define in props and transforms which in this case basically means your timestamp should have been already processed which is formatting your timestamp currently to "02/04/19 12:50:49" format.&lt;BR /&gt;
And your new rule should be applied after that.&lt;BR /&gt;
Also check for correct Stanza names.&lt;/P&gt;

&lt;P&gt;In case this does not work out, please paste here the rules you are defining to process the timestamps for your logs.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2019 17:52:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Reconfigure-how-timestamps-appear-in-raw-data/m-p/404161#M71763</guid>
      <dc:creator>amitm05</dc:creator>
      <dc:date>2019-06-04T17:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: Reconfigure how timestamps appear in raw data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Reconfigure-how-timestamps-appear-in-raw-data/m-p/404162#M71764</link>
      <description>&lt;P&gt;props.conf&lt;BR /&gt;
[sourcetype]&lt;BR /&gt;
FIELD_DELIMITER = ,&lt;BR /&gt;
INDEXED_EXTRACTIONS = csv&lt;BR /&gt;
TRANSFORMS-sortdate = resortdate&lt;/P&gt;

&lt;P&gt;transform.conf&lt;BR /&gt;
[resortdate]&lt;BR /&gt;
REGEX = ^(\d{2}/\d{2}/\d{2} \d{2}:\d{2}:\d{2})&lt;BR /&gt;
FORMAT = $2/$1/$3&lt;BR /&gt;
DEST_KEY = _raw&lt;/P&gt;

&lt;P&gt;This is what I have to convert the raw data to a better date format like mm/dd/yyyy.&lt;BR /&gt;
What am I missing?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:47:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Reconfigure-how-timestamps-appear-in-raw-data/m-p/404162#M71764</guid>
      <dc:creator>sheaross</dc:creator>
      <dc:date>2020-09-30T00:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: Reconfigure how timestamps appear in raw data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Reconfigure-how-timestamps-appear-in-raw-data/m-p/404163#M71765</link>
      <description>&lt;P&gt;Sorry about that, I placed my info into the wrong area.  Below is what I have so far.&lt;/P&gt;

&lt;P&gt;props.conf&lt;BR /&gt;
[sourcetype]&lt;BR /&gt;
FIELD_DELIMITER = ,&lt;BR /&gt;
INDEXED_EXTRACTIONS = csv&lt;BR /&gt;
TRANSFORMS-sortdate = resortdate&lt;/P&gt;

&lt;P&gt;transform.conf&lt;BR /&gt;
[resortdate]&lt;BR /&gt;
REGEX = ^(\d{2}/\d{2}/\d{2} \d{2}:\d{2}:\d{2})&lt;BR /&gt;
FORMAT = $2/$1/$3&lt;BR /&gt;
DEST_KEY = _raw&lt;/P&gt;

&lt;P&gt;This is what I have to convert the raw data to a better date format like mm/dd/yyyy.&lt;BR /&gt;
What am I missing?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:47:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Reconfigure-how-timestamps-appear-in-raw-data/m-p/404163#M71765</guid>
      <dc:creator>sheaross</dc:creator>
      <dc:date>2020-09-30T00:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: Reconfigure how timestamps appear in raw data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Reconfigure-how-timestamps-appear-in-raw-data/m-p/404164#M71766</link>
      <description>&lt;P&gt;Seems to be a problem here with the REGEX you are using. &lt;BR /&gt;
You are using ^(\d{2}/\d{2}/\d{2} \d{2}:\d{2}:\d{2}) and then a Format of $2/$1/$3 to provide you mm/dd/yyyy&lt;BR /&gt;
At $3 you are extracting 2 digits only. &lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2019 06:03:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Reconfigure-how-timestamps-appear-in-raw-data/m-p/404164#M71766</guid>
      <dc:creator>amitm05</dc:creator>
      <dc:date>2019-06-05T06:03:14Z</dc:date>
    </item>
    <item>
      <title>Re: Reconfigure how timestamps appear in raw data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Reconfigure-how-timestamps-appear-in-raw-data/m-p/404165#M71767</link>
      <description>&lt;P&gt;This is what I have now, it's strange it works somewhat.  It will resort the data on some but not all of them for the month.  Once I do a search between dates, it will not display all records for that month because some dates were not resorted.  Any ideas?&lt;/P&gt;

&lt;P&gt;[sourcetype]&lt;BR /&gt;
TRANSFORMS-sortdate = resortdate&lt;BR /&gt;
FIELD_DELIMITER = ,&lt;BR /&gt;
NO_BINARY_CHECK = true&lt;BR /&gt;
TIMESTAMP_FIELDS = Date and Time&lt;BR /&gt;
category = Custom&lt;BR /&gt;
disabled = false&lt;/P&gt;

&lt;P&gt;[resortdate]&lt;BR /&gt;
REGEX = ^(\d{2})\/(\d{2})\/(\d{2})\s([^/]+)&lt;BR /&gt;
FORMAT = $2/$1/$3 $4&lt;BR /&gt;
DEST_KEY = _raw&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:49:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Reconfigure-how-timestamps-appear-in-raw-data/m-p/404165#M71767</guid>
      <dc:creator>sheaross</dc:creator>
      <dc:date>2020-09-30T00:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: Reconfigure how timestamps appear in raw data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Reconfigure-how-timestamps-appear-in-raw-data/m-p/404166#M71768</link>
      <description>&lt;P&gt;Either it should be processing all OR none. Can you check the ones that arent getting processed have the same time format as the others that are getting processed.&lt;BR /&gt;
If not, the solution would still be with your Regex. &lt;/P&gt;

&lt;P&gt;I think $4 might not be usable here at all and can be removed.  &lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2019 05:27:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Reconfigure-how-timestamps-appear-in-raw-data/m-p/404166#M71768</guid>
      <dc:creator>amitm05</dc:creator>
      <dc:date>2019-06-06T05:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: Reconfigure how timestamps appear in raw data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Reconfigure-how-timestamps-appear-in-raw-data/m-p/404167#M71769</link>
      <description>&lt;P&gt;I checked and all dates and times are in the same format.  The regex is changing the actual raw data for the dates.  So that's working.  It just that some dates are converting over to the _time to where I can do a search on these dates.  I have about 30 records that are not converting over to the _time.  Maybe this is causing the issue with the dates converting to _time.  On one record the file date is 11/04/19, the raw data is 04/11/19, but the _time data is 5/4/19 with this error.&lt;/P&gt;

&lt;P&gt;A possible timestamp match (Mon Nov 4 09:08:30 2019) is outside of the acceptable time window.  If this timestamp is correct, consider adjusting MAX_DAYS_AGO and MAX_DAYS_HENCE.&lt;/P&gt;

&lt;P&gt;Failed to parse timestamp in first MAX_TIMESTAMP_LOOKAHEAD(17) characters of event.  Defaulting to timestamp of previous event(Sat May 4 06:19:26 2019).&lt;/P&gt;

&lt;P&gt;It's very strange, because the record right after the one listed above has the exact same date and time and the _raw data and _time data works.&lt;/P&gt;

&lt;P&gt;That's just one example, another example is on one record the file date is 02/04/19, the raw data is 04/02/19, but the _time data is 2/4/19.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:49:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Reconfigure-how-timestamps-appear-in-raw-data/m-p/404167#M71769</guid>
      <dc:creator>sheaross</dc:creator>
      <dc:date>2020-09-30T00:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: Reconfigure how timestamps appear in raw data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Reconfigure-how-timestamps-appear-in-raw-data/m-p/404168#M71770</link>
      <description>&lt;P&gt;This setting in the transform config file will convert the date to what I need in the raw data.&lt;/P&gt;

&lt;P&gt;REGEX = ^(\d{2})\/(\d{2})\/(\d{2})\s([^/]+)&lt;BR /&gt;
FORMAT = $2/$1/$3 $4&lt;/P&gt;

&lt;P&gt;But, when I add the data and on the create sourcetype page to check the data, switch to raw data only the date will show and not the rest of the raw data.  I think you are right, it has something to do with the regex.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2019 15:53:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Reconfigure-how-timestamps-appear-in-raw-data/m-p/404168#M71770</guid>
      <dc:creator>sheaross</dc:creator>
      <dc:date>2019-06-06T15:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: Reconfigure how timestamps appear in raw data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Reconfigure-how-timestamps-appear-in-raw-data/m-p/404169#M71771</link>
      <description>&lt;P&gt;Can you paste the 2 raw events here. One that is getting correct time format and the one that is not .&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2019 06:01:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Reconfigure-how-timestamps-appear-in-raw-data/m-p/404169#M71771</guid>
      <dc:creator>amitm05</dc:creator>
      <dc:date>2019-06-07T06:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: Reconfigure how timestamps appear in raw data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Reconfigure-how-timestamps-appear-in-raw-data/m-p/404170#M71772</link>
      <description>&lt;P&gt;These two rows will process to _raw data, but not to _time data.&lt;BR /&gt;
02/04/19 12:50:49,userid,Processing,REV,10,,Dimension 2 Code,Modification,2024,2024,2033,2033&lt;BR /&gt;
05/04/19 06:19:26,userid,Account,000000,,,Last Date Modified,Modification,2018-11-05,11/05/18,2019-04-05,04/05/19&lt;/P&gt;

&lt;P&gt;These two rows have the same date, the second row will process to _raw data and to _time data.  The first row is where I get the error mentioned earlier to _raw data, but for _time data it reverts back to the previous record and converts the _time to 05/04/19.&lt;BR /&gt;
11/04/19 09:08:30,userid,General,,,,Allow From,Modification,2019-03-01,03/01/19,2019-04-01,04/01/19&lt;BR /&gt;
11/04/19 09:08:30,userid,General Setup,,,,Allow To,Modification,2019-04-30,04/30/19,2019-05-01,05/01/19&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2019 12:23:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Reconfigure-how-timestamps-appear-in-raw-data/m-p/404170#M71772</guid>
      <dc:creator>sheaross</dc:creator>
      <dc:date>2019-06-07T12:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: Reconfigure how timestamps appear in raw data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Reconfigure-how-timestamps-appear-in-raw-data/m-p/404171#M71773</link>
      <description>&lt;P&gt;Sorry to jump in this conversation but timestamp parsing happen in Aggregation Queue and transforms.conf REGEX &amp;amp; FORMAT happen in Typing Queue. And flow is like &lt;CODE&gt;... -&amp;gt; Aggregation Queue -&amp;gt; Typing Queue -&amp;gt; ....&lt;/CODE&gt; so as per above config _time will not change.&lt;BR /&gt;
Have a look at how Indexing works &lt;A href="https://wiki.splunk.com/Community:HowIndexingWorks"&gt;https://wiki.splunk.com/Community:HowIndexingWorks&lt;/A&gt; so you'll get better idea.&lt;/P&gt;

&lt;P&gt;Additionally when you use INDEXED_EXTRACTIONS it will skip certain queues.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2019 13:11:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Reconfigure-how-timestamps-appear-in-raw-data/m-p/404171#M71773</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2019-06-07T13:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: Reconfigure how timestamps appear in raw data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Reconfigure-how-timestamps-appear-in-raw-data/m-p/404172#M71774</link>
      <description>&lt;P&gt;Thank you for the input, but how do I get the date resorted to where it's in the raw data and _time?&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2019 12:39:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Reconfigure-how-timestamps-appear-in-raw-data/m-p/404172#M71774</guid>
      <dc:creator>sheaross</dc:creator>
      <dc:date>2019-06-10T12:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: Reconfigure how timestamps appear in raw data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Reconfigure-how-timestamps-appear-in-raw-data/m-p/404173#M71775</link>
      <description>&lt;P&gt;I added this in the props.conf and it converted the _raw data and _time data along with the regex in the transforms.conf.&lt;/P&gt;

&lt;P&gt;props.conf&lt;BR /&gt;
TIME_FORMAT = %d/%m/%y %H:%M:%S&lt;/P&gt;

&lt;P&gt;transforms.conf&lt;BR /&gt;
REGEX = ^(\d{2})\/(\d{2})\/(\d{2})\s(.*)&lt;BR /&gt;
FORMAT = $2/$1/$3 $4&lt;/P&gt;

&lt;P&gt;TIME_FORMAT = %d/%m/%y %H:%M:%S&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2019 13:36:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Reconfigure-how-timestamps-appear-in-raw-data/m-p/404173#M71775</guid>
      <dc:creator>sheaross</dc:creator>
      <dc:date>2019-06-10T13:36:06Z</dc:date>
    </item>
  </channel>
</rss>

