<?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 do we handle white space in TIME_FORMAT? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-we-handle-white-space-in-TIME-FORMAT/m-p/520308#M171738</link>
    <description>&lt;P&gt;Gregg, you made my day! Thx. I didn't know %r, %n, %s. Couldn't find anything about these in &lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.6/SearchReference/Commontimeformatvariables" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.6/SearchReference/Commontimeformatvariables&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Again, great knowledge!&lt;/P&gt;</description>
    <pubDate>Fri, 18 Sep 2020 11:48:32 GMT</pubDate>
    <dc:creator>tomasmoser</dc:creator>
    <dc:date>2020-09-18T11:48:32Z</dc:date>
    <item>
      <title>How do we handle white space in TIME_FORMAT?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-we-handle-white-space-in-TIME-FORMAT/m-p/422732#M171728</link>
      <description>&lt;P&gt;I have a log file with events that start like - &lt;CODE&gt;2019-01-09 11:19:37 WARN&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;We ended up using &lt;CODE&gt;TIME_FORMAT=%Y-%m-%d%t%H:%M:%S&lt;/CODE&gt; and I don't like the &lt;CODE&gt;%t&lt;/CODE&gt; (tab) part. &lt;/P&gt;

&lt;P&gt;Is there a better way to handle the white space in &lt;CODE&gt;TIME_FORMAT&lt;/CODE&gt;?&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2019 17:53:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-we-handle-white-space-in-TIME-FORMAT/m-p/422732#M171728</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2019-04-23T17:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: How do we handle white space in TIME_FORMAT?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-we-handle-white-space-in-TIME-FORMAT/m-p/422733#M171729</link>
      <description>&lt;P&gt;The SE said -&lt;/P&gt;

&lt;P&gt;You just leave a blank space; &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_FORMAT=%Y-%m-%d %H:%M:%S
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 23 Apr 2019 19:42:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-we-handle-white-space-in-TIME-FORMAT/m-p/422733#M171729</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2019-04-23T19:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: How do we handle white space in TIME_FORMAT?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-we-handle-white-space-in-TIME-FORMAT/m-p/422734#M171730</link>
      <description>&lt;P&gt;Just a space &lt;CODE&gt;" "&lt;/CODE&gt;&lt;BR /&gt;&lt;BR /&gt;
nothing more nothing else&lt;/P&gt;

&lt;P&gt;sometimes you will see capital &lt;CODE&gt;T&lt;/CODE&gt;&lt;BR /&gt;
check out this example and see&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults count=1
| eval time_with_space1 = "2019-01-09 11:19:37"
| eval time_with_space2 = "2019 01 09 11:19:37"
| eval time_with_space3 = "2019-01-09T11:19:37"
| eval check_that_time_format_works1 = strftime(strptime(time_with_space1, "%Y-%m-%d %H:%M:%S"), "%c")
| eval check_that_time_format_works2 = strftime(strptime(time_with_space2, "%Y %m %d %H:%M:%S"), "%c")
| eval check_that_time_format_works3 = strftime(strptime(time_with_space3, "%Y-%m-%dT%H:%M:%S"), "%c")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;hope it helps&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2019 23:35:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-we-handle-white-space-in-TIME-FORMAT/m-p/422734#M171730</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2019-04-23T23:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: How do we handle white space in TIME_FORMAT?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-we-handle-white-space-in-TIME-FORMAT/m-p/422735#M171731</link>
      <description>&lt;P&gt;Interesting, I added a couple of spaces here between and the date and the time - &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | eval time_with_space1 = "2019-01-09    11:19:37"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And it still works!!!&lt;/P&gt;

&lt;P&gt;So, the space within &lt;CODE&gt;"%Y-%m-%d %H:%M:%S"&lt;/CODE&gt; is stretchable, right?&lt;/P&gt;

&lt;P&gt;My conclusion is that any combination of spaces and tabs in the data should be condensed to one space within &lt;CODE&gt;TIME_FORMAT&lt;/CODE&gt;. I hope it's correct.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2019 23:41:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-we-handle-white-space-in-TIME-FORMAT/m-p/422735#M171731</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2019-04-23T23:41:00Z</dc:date>
    </item>
    <item>
      <title>Re: How do we handle white space in TIME_FORMAT?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-we-handle-white-space-in-TIME-FORMAT/m-p/422736#M171732</link>
      <description>&lt;P&gt;You can use combinations of &lt;CODE&gt;%r&lt;/CODE&gt;, &lt;CODE&gt;%n&lt;/CODE&gt;, &lt;CODE&gt;%t&lt;/CODE&gt; and a regular space character.  The numbers are not important, but the order is.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2019 00:50:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-we-handle-white-space-in-TIME-FORMAT/m-p/422736#M171732</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-04-24T00:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: How do we handle white space in TIME_FORMAT?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-we-handle-white-space-in-TIME-FORMAT/m-p/422737#M171733</link>
      <description>&lt;P&gt;Thank you @woodcock !!!&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2019 00:56:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-we-handle-white-space-in-TIME-FORMAT/m-p/422737#M171733</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2019-04-24T00:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: How do we handle white space in TIME_FORMAT?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-we-handle-white-space-in-TIME-FORMAT/m-p/422738#M171734</link>
      <description>&lt;P&gt;Thank you @adonio !!!&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2019 00:56:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-we-handle-white-space-in-TIME-FORMAT/m-p/422738#M171734</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2019-04-24T00:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: How do we handle white space in TIME_FORMAT?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-we-handle-white-space-in-TIME-FORMAT/m-p/422739#M171735</link>
      <description>&lt;P&gt;@woodcock, will a tab in the data be captured by a space in &lt;CODE&gt;TIME_FORMAT=%Y-%m-%d %H:%M:%S&lt;/CODE&gt;?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2019 01:31:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-we-handle-white-space-in-TIME-FORMAT/m-p/422739#M171735</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2019-04-24T01:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: How do we handle white space in TIME_FORMAT?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-we-handle-white-space-in-TIME-FORMAT/m-p/422740#M171736</link>
      <description>&lt;P&gt;No, you need to use &lt;CODE&gt;%t&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2019 01:48:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-we-handle-white-space-in-TIME-FORMAT/m-p/422740#M171736</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-04-24T01:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: How do we handle white space in TIME_FORMAT?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-we-handle-white-space-in-TIME-FORMAT/m-p/422741#M171737</link>
      <description>&lt;P&gt;Wow - a bit limiting ; -)&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2019 13:37:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-we-handle-white-space-in-TIME-FORMAT/m-p/422741#M171737</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2019-04-24T13:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: How do we handle white space in TIME_FORMAT?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-we-handle-white-space-in-TIME-FORMAT/m-p/520308#M171738</link>
      <description>&lt;P&gt;Gregg, you made my day! Thx. I didn't know %r, %n, %s. Couldn't find anything about these in &lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.6/SearchReference/Commontimeformatvariables" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.6/SearchReference/Commontimeformatvariables&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Again, great knowledge!&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2020 11:48:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-we-handle-white-space-in-TIME-FORMAT/m-p/520308#M171738</guid>
      <dc:creator>tomasmoser</dc:creator>
      <dc:date>2020-09-18T11:48:32Z</dc:date>
    </item>
  </channel>
</rss>

