<?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 Format in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Date-Format/m-p/64415#M15939</link>
    <description>&lt;P&gt;If Splunk is not already parsing out this field , you can use something like such:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...|rex field=DATE mode=sed "/s/\d{2}:\d{2}:\d{2}//g"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 14 Jun 2013 17:19:06 GMT</pubDate>
    <dc:creator>JSapienza</dc:creator>
    <dc:date>2013-06-14T17:19:06Z</dc:date>
    <item>
      <title>Date Format</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Date-Format/m-p/64414#M15938</link>
      <description>&lt;P&gt;I have a field called DATE and it is returning values yyyy-mm-dd HH:MM:SS.  I am trying to chop off the hours, min, seconds so I only have yyyy-mm-dd.  I have tried to use the convert command but I would rather not have to convert it to epoch time and then convert it back.  Is there an easier way to go about this?&lt;/P&gt;

&lt;P&gt;Thank you in advance&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2013 16:28:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Date-Format/m-p/64414#M15938</guid>
      <dc:creator>JoeSco27</dc:creator>
      <dc:date>2013-06-14T16:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: Date Format</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Date-Format/m-p/64415#M15939</link>
      <description>&lt;P&gt;If Splunk is not already parsing out this field , you can use something like such:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...|rex field=DATE mode=sed "/s/\d{2}:\d{2}:\d{2}//g"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 14 Jun 2013 17:19:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Date-Format/m-p/64415#M15939</guid>
      <dc:creator>JSapienza</dc:creator>
      <dc:date>2013-06-14T17:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: Date Format</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Date-Format/m-p/64416#M15940</link>
      <description>&lt;P&gt;| eval n=strptime(DATE, "%Y-%m-%d") | convert timeformat="%Y %m %d" ctime(n) AS c_time | chart count by c_time&lt;/P&gt;

&lt;P&gt;this gave me the count for each day i requested, thank you for the help&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:05:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Date-Format/m-p/64416#M15940</guid>
      <dc:creator>JoeSco27</dc:creator>
      <dc:date>2020-09-28T14:05:52Z</dc:date>
    </item>
    <item>
      <title>Re: Date Format</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Date-Format/m-p/64417#M15941</link>
      <description>&lt;P&gt;the most efficient way is to set up TIME_FORMAT in props.conf . That will do the magic at indexing time&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2013 00:21:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Date-Format/m-p/64417#M15941</guid>
      <dc:creator>asimagu</dc:creator>
      <dc:date>2013-06-18T00:21:05Z</dc:date>
    </item>
  </channel>
</rss>

