<?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 Validating timestamp extraction after an update in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Validating-timestamp-extraction-after-an-update/m-p/472323#M81171</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have updated all my instances by updating the datetime.xml file as described here:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.0/ReleaseNotes/FixDatetimexml2020#Download_and_deploy_an_app_that_temporarily_replaces_the_defective_datetime.xml_file_with_the_fixed_file" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.0/ReleaseNotes/FixDatetimexml2020#Download_and_deploy_an_app_that_temporarily_replaces_the_defective_datetime.xml_file_with_the_fixed_file&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Now I'm trying to validate the fix by following the suggested procedure i.e.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;1-Paste the following text into a text editor:&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;date,message
19-12-31 23:58:44,Test Message  - datetime.xml testing - override - puppet managed forced restart
20-01-02 23:58:54,Test Message  - datetime.xml testing - override - puppet managed forced restart
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;2-Save the text as a text file, for example, test_file.csv, to a place that is accessible from all of your Splunk platform instances.&lt;/STRONG&gt;&lt;BR /&gt;
&lt;STRONG&gt;3-On the Splunk platform instance that you want to validate, adjust the MAX_DAYS_HENCE setting for the [default] stanza in the $SPLUNK_HOME/etc/system/local/props.conf configuration file.&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[default]
MAX_DAYS_HENCE = 40
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;4-Restart the Splunk platform&lt;/STRONG&gt;.&lt;BR /&gt;
&lt;STRONG&gt;5-Using the Splunk CLI, add the text file you saved earlier as a oneshot monitor to the Splunk platform instance that you want to validate.&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$SPLUNK_HOME/bin/splunk add oneshot -source test_file.csv -sourcetype csv -index main
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;6-Perform a search on the text in Step 1. The text with the two digit "20" should have a timestamp with the correct two-digit year of 2020.&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Now I'm stuck at step 3, I do not have a props.conf file  in /etc/system/local/ of any of the instances ,furthermore I have lots of custom apps that have their own &lt;CODE&gt;props.conf&lt;/CODE&gt; within their respective /apps/[appname] directory.&lt;/P&gt;

&lt;P&gt;I m not sure how to validate this fix in this scenario, I was able to validate this on a single instance test server by just copying the &lt;CODE&gt;/opt/splunk/etc/system/default/props.conf&lt;/CODE&gt; onto &lt;CODE&gt;/opt/splunk/etc/system/local&lt;/CODE&gt; and editing the  MAX_DAYS_HENCE  value.&lt;/P&gt;

&lt;P&gt;But in this production environment not sure how to go about it. If i create a props.conf under &lt;CODE&gt;/opt/splunk/etc/system/local/&lt;/CODE&gt; this would override all other &lt;CODE&gt;props.conf&lt;/CODE&gt; and break things?&lt;/P&gt;

&lt;P&gt;Any suggestions? Thanks.&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 03:28:52 GMT</pubDate>
    <dc:creator>amankhan1</dc:creator>
    <dc:date>2020-09-30T03:28:52Z</dc:date>
    <item>
      <title>Validating timestamp extraction after an update</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Validating-timestamp-extraction-after-an-update/m-p/472323#M81171</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have updated all my instances by updating the datetime.xml file as described here:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.0/ReleaseNotes/FixDatetimexml2020#Download_and_deploy_an_app_that_temporarily_replaces_the_defective_datetime.xml_file_with_the_fixed_file" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.0/ReleaseNotes/FixDatetimexml2020#Download_and_deploy_an_app_that_temporarily_replaces_the_defective_datetime.xml_file_with_the_fixed_file&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Now I'm trying to validate the fix by following the suggested procedure i.e.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;1-Paste the following text into a text editor:&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;date,message
19-12-31 23:58:44,Test Message  - datetime.xml testing - override - puppet managed forced restart
20-01-02 23:58:54,Test Message  - datetime.xml testing - override - puppet managed forced restart
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;2-Save the text as a text file, for example, test_file.csv, to a place that is accessible from all of your Splunk platform instances.&lt;/STRONG&gt;&lt;BR /&gt;
&lt;STRONG&gt;3-On the Splunk platform instance that you want to validate, adjust the MAX_DAYS_HENCE setting for the [default] stanza in the $SPLUNK_HOME/etc/system/local/props.conf configuration file.&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[default]
MAX_DAYS_HENCE = 40
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;4-Restart the Splunk platform&lt;/STRONG&gt;.&lt;BR /&gt;
&lt;STRONG&gt;5-Using the Splunk CLI, add the text file you saved earlier as a oneshot monitor to the Splunk platform instance that you want to validate.&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$SPLUNK_HOME/bin/splunk add oneshot -source test_file.csv -sourcetype csv -index main
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;6-Perform a search on the text in Step 1. The text with the two digit "20" should have a timestamp with the correct two-digit year of 2020.&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Now I'm stuck at step 3, I do not have a props.conf file  in /etc/system/local/ of any of the instances ,furthermore I have lots of custom apps that have their own &lt;CODE&gt;props.conf&lt;/CODE&gt; within their respective /apps/[appname] directory.&lt;/P&gt;

&lt;P&gt;I m not sure how to validate this fix in this scenario, I was able to validate this on a single instance test server by just copying the &lt;CODE&gt;/opt/splunk/etc/system/default/props.conf&lt;/CODE&gt; onto &lt;CODE&gt;/opt/splunk/etc/system/local&lt;/CODE&gt; and editing the  MAX_DAYS_HENCE  value.&lt;/P&gt;

&lt;P&gt;But in this production environment not sure how to go about it. If i create a props.conf under &lt;CODE&gt;/opt/splunk/etc/system/local/&lt;/CODE&gt; this would override all other &lt;CODE&gt;props.conf&lt;/CODE&gt; and break things?&lt;/P&gt;

&lt;P&gt;Any suggestions? Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 03:28:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Validating-timestamp-extraction-after-an-update/m-p/472323#M81171</guid>
      <dc:creator>amankhan1</dc:creator>
      <dc:date>2020-09-30T03:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: Validating timestamp extraction after an update</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Validating-timestamp-extraction-after-an-update/m-p/472324#M81172</link>
      <description>&lt;P&gt;You can create a props.conf in any valid location, with just these two lines:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[my_datetime_test]
MAX_DAYS_HENCE = 40
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I wouldn't recommend using [default] in case some other sourcetype relies on this setting in your production environment. Make sure your oneshot references this sourcetype.&lt;BR /&gt;
Additionally, I wouldn't recommend using index main - instead, use a sandbox/temp index to not pollute your production data with test stuff.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Dec 2019 13:09:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Validating-timestamp-extraction-after-an-update/m-p/472324#M81172</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2019-12-24T13:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: Validating timestamp extraction after an update</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Validating-timestamp-extraction-after-an-update/m-p/472325#M81173</link>
      <description>&lt;P&gt;Thanks Martin,&lt;BR /&gt;
One  question, in order to  ensure all my instances are correctly patched , I will have to run these steps on each instance individually ,SH,Idx,Cluster master, DS, HF etc?  or is there a way this test can validate all instances?&lt;/P&gt;

&lt;P&gt;was thinking  along the lines of running the process (step1 to step 5) on one of the indexers and then executing the search in step 6 on the search head.?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Dec 2019 02:17:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Validating-timestamp-extraction-after-an-update/m-p/472325#M81173</guid>
      <dc:creator>amankhan1</dc:creator>
      <dc:date>2019-12-26T02:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: Validating timestamp extraction after an update</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Validating-timestamp-extraction-after-an-update/m-p/472326#M81174</link>
      <description>&lt;P&gt;hi aman,&lt;/P&gt;

&lt;P&gt;I have distributed environemnt and I done this on HF and add the file into test index through oneshot. and for validation, I select all time one the date is in splunk.&lt;BR /&gt;
in distributed environment, CM , DS  are admin components and they are not participating in indexing operations. SO no need to test them. &lt;/P&gt;</description>
      <pubDate>Thu, 26 Dec 2019 07:28:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Validating-timestamp-extraction-after-an-update/m-p/472326#M81174</guid>
      <dc:creator>riqbal47010</dc:creator>
      <dc:date>2019-12-26T07:28:50Z</dc:date>
    </item>
  </channel>
</rss>

