<?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: Is there a way to remove seconds from a table? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-remove-seconds-from-a-table/m-p/302245#M90952</link>
    <description>&lt;P&gt;@jrevolorio try adding this pipe into your search &lt;CODE&gt;your search | eval time=strftime(_time, "%H:%M") | your report&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;What we are doing is taking the _time field and stripping out the Hour and Minute only. If you have another field you are pulling time from you can replace _time for that field. When you create your output you will then use the time field instead.&lt;/P&gt;</description>
    <pubDate>Fri, 25 Aug 2017 20:56:45 GMT</pubDate>
    <dc:creator>Grumpalot</dc:creator>
    <dc:date>2017-08-25T20:56:45Z</dc:date>
    <item>
      <title>Is there a way to remove seconds from a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-remove-seconds-from-a-table/m-p/302244#M90951</link>
      <description>&lt;P&gt;I'm trying to create a report where it shows the date and time; however, when it comes to time I just want it to display the hour and minutes, not the seconds. Is there a way to do that? &lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2017 20:24:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-remove-seconds-from-a-table/m-p/302244#M90951</guid>
      <dc:creator>jrevolorio</dc:creator>
      <dc:date>2017-08-25T20:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to remove seconds from a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-remove-seconds-from-a-table/m-p/302245#M90952</link>
      <description>&lt;P&gt;@jrevolorio try adding this pipe into your search &lt;CODE&gt;your search | eval time=strftime(_time, "%H:%M") | your report&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;What we are doing is taking the _time field and stripping out the Hour and Minute only. If you have another field you are pulling time from you can replace _time for that field. When you create your output you will then use the time field instead.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2017 20:56:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-remove-seconds-from-a-table/m-p/302245#M90952</guid>
      <dc:creator>Grumpalot</dc:creator>
      <dc:date>2017-08-25T20:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to remove seconds from a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-remove-seconds-from-a-table/m-p/302246#M90953</link>
      <description>&lt;P&gt;Use the &lt;CODE&gt;fieldformat&lt;/CODE&gt; command.  Something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | fieldformat myField=strftime(myField, "%Y-%m-%d %H:%M")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 25 Aug 2017 20:58:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-remove-seconds-from-a-table/m-p/302246#M90953</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2017-08-25T20:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to remove seconds from a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-remove-seconds-from-a-table/m-p/302247#M90954</link>
      <description>&lt;P&gt;You can format it, the way that @richgalloway and @Grumpalot said, or you can actually change the &lt;CODE&gt;_time&lt;/CODE&gt; to eliminate the seconds like this -&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval _time = 60*floor(_time/60)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Under the above, the standard output for &lt;CODE&gt;_time&lt;/CODE&gt; should hide the seconds.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2017 22:32:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-remove-seconds-from-a-table/m-p/302247#M90954</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-08-25T22:32:29Z</dc:date>
    </item>
  </channel>
</rss>

