<?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 time format in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/date-time-format/m-p/127656#M34627</link>
    <description>&lt;P&gt;hi, does this help? &lt;A href="http://docs.splunk.com/Documentation/DBX/1.1/DeployDBX/Troubleshoot#Issues_with_bad_line_breaking.2Fline_merging"&gt;http://docs.splunk.com/Documentation/DBX/1.1/DeployDBX/Troubleshoot#Issues_with_bad_line_breaking.2Fline_merging&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I usually try to solve time issues in SQL first, it's easier to ask the database to CAST than it is to write a TIME_FORMAT.&lt;/P&gt;</description>
    <pubDate>Mon, 04 Nov 2013 19:49:27 GMT</pubDate>
    <dc:creator>jcoates_splunk</dc:creator>
    <dc:date>2013-11-04T19:49:27Z</dc:date>
    <item>
      <title>date time format</title>
      <link>https://community.splunk.com/t5/Splunk-Search/date-time-format/m-p/127655#M34626</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
we have a tool, which is writing to a database.&lt;BR /&gt;
I use splunk db connect to get the data out of it.&lt;BR /&gt;
The tool writes a timestamp with YYYY-MM-DD into the database.&lt;BR /&gt;
This is not respected by splunk, because it is doing like MM/DD/YYY&lt;/P&gt;

&lt;P&gt;When I use the dbquerys as they come on a default splunk environment splunk has the date format:10/28/13 3:38:39.000 AM &lt;BR /&gt;
The replication monitor tool is writing to the database in this format: 2013-10-23 06:33:47.443&lt;/P&gt;

&lt;P&gt;So when I search with the DBquery it cannot match them. When I remove the time related query it is showing me results.&lt;/P&gt;

&lt;P&gt;Solution approaches:&lt;BR /&gt;
- I set the date/time in the windows machine like it is in the database --&amp;gt; no success&lt;BR /&gt;
- I tried with different urls - like described here: &lt;A href="http://answers.splunk.com/answers/525/how-can-i-change-the-time-format-in-splunk-web" target="_blank"&gt;http://answers.splunk.com/answers/525/how-can-i-change-the-time-format-in-splunk-web&lt;/A&gt; --&amp;gt; no success&lt;BR /&gt;
- I tried to use the Time_Format Parameter like this: &lt;BR /&gt;
[Vault Monitor]&lt;BR /&gt;
TIME_FORMAT = %Y-%m-%d %k:%M:%S&lt;BR /&gt;
in&lt;BR /&gt;
C:\Program Files\Splunk\etc\system\local\props.conf --&amp;gt; no success&lt;/P&gt;

&lt;P&gt;anyone an fruitful idea?&lt;BR /&gt;
Thanks!&lt;/P&gt;

&lt;P&gt;BR&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:11:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/date-time-format/m-p/127655#M34626</guid>
      <dc:creator>ryoku</dc:creator>
      <dc:date>2020-09-28T15:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: date time format</title>
      <link>https://community.splunk.com/t5/Splunk-Search/date-time-format/m-p/127656#M34627</link>
      <description>&lt;P&gt;hi, does this help? &lt;A href="http://docs.splunk.com/Documentation/DBX/1.1/DeployDBX/Troubleshoot#Issues_with_bad_line_breaking.2Fline_merging"&gt;http://docs.splunk.com/Documentation/DBX/1.1/DeployDBX/Troubleshoot#Issues_with_bad_line_breaking.2Fline_merging&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I usually try to solve time issues in SQL first, it's easier to ask the database to CAST than it is to write a TIME_FORMAT.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2013 19:49:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/date-time-format/m-p/127656#M34627</guid>
      <dc:creator>jcoates_splunk</dc:creator>
      <dc:date>2013-11-04T19:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: date time format</title>
      <link>https://community.splunk.com/t5/Splunk-Search/date-time-format/m-p/127657#M34628</link>
      <description>&lt;P&gt;hello...&lt;BR /&gt;
I did it now in SQL with &lt;BR /&gt;
Select format(sampledate,'MM/dd/yyyy hh:mm:ss','en-US')&lt;/P&gt;

&lt;P&gt;but it is not taking this into consideration when I use the date picker.&lt;BR /&gt;
Or I want to narrow down to the last 60 seconds.&lt;/P&gt;

&lt;P&gt;it does not compare my column with the splunk date....&lt;BR /&gt;
anyone else an idea?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2013 13:58:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/date-time-format/m-p/127657#M34628</guid>
      <dc:creator>ryoku</dc:creator>
      <dc:date>2013-11-05T13:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: date time format</title>
      <link>https://community.splunk.com/t5/Splunk-Search/date-time-format/m-p/127658#M34629</link>
      <description>&lt;P&gt;hello...&lt;BR /&gt;
I did it now in SQL with &lt;BR /&gt;
Select format(sampledate,'MM/dd/yyyy hh:mm:ss','en-US')&lt;/P&gt;

&lt;P&gt;but it is not taking this into consideration when I use the date picker.&lt;BR /&gt;
Or I want to narrow down to the last 60 seconds.&lt;/P&gt;

&lt;P&gt;it does not compare my column with the splunk date....&lt;BR /&gt;
anyone else an idea?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2013 13:59:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/date-time-format/m-p/127658#M34629</guid>
      <dc:creator>ryoku</dc:creator>
      <dc:date>2013-11-05T13:59:43Z</dc:date>
    </item>
  </channel>
</rss>

