<?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 to extract month and year from _time in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-month-and-year-from-time/m-p/432845#M173270</link>
    <description>&lt;P&gt;Thank you...&lt;/P&gt;</description>
    <pubDate>Wed, 30 Jan 2019 12:42:23 GMT</pubDate>
    <dc:creator>sbhatnagar88</dc:creator>
    <dc:date>2019-01-30T12:42:23Z</dc:date>
    <item>
      <title>How to extract month and year from _time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-month-and-year-from-time/m-p/432842#M173267</link>
      <description>&lt;P&gt;_ time is in below format&lt;/P&gt;

&lt;P&gt;2019-01-30 07:10:51.191&lt;BR /&gt;
2019-01-30 07:10:51.190&lt;BR /&gt;
2019-01-30 07:10:51.189&lt;/P&gt;

&lt;P&gt;I need output in below format&lt;/P&gt;

&lt;P&gt;January 2019&lt;/P&gt;

&lt;P&gt;Any help would be highly appreciable...&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jan 2019 10:46:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-month-and-year-from-time/m-p/432842#M173267</guid>
      <dc:creator>sbhatnagar88</dc:creator>
      <dc:date>2019-01-30T10:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract month and year from _time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-month-and-year-from-time/m-p/432843#M173268</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;your base search&amp;gt; | eval yourtime = strftime(_time,"%B %Y) 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;the field &lt;CODE&gt;yourtime&lt;/CODE&gt; will then contain the timestamp in the requested format.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jan 2019 12:32:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-month-and-year-from-time/m-p/432843#M173268</guid>
      <dc:creator>DMohn</dc:creator>
      <dc:date>2019-01-30T12:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract month and year from _time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-month-and-year-from-time/m-p/432844#M173269</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/158927"&gt;@sbhatnagar88&lt;/a&gt;&lt;/P&gt;

&lt;P&gt;Try this:&lt;BR /&gt;
    index=_internal | head 1 | table _time | eval time= strftime(_time, "%B %Y")&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 23:00:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-month-and-year-from-time/m-p/432844#M173269</guid>
      <dc:creator>vishaltaneja070</dc:creator>
      <dc:date>2020-09-29T23:00:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract month and year from _time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-month-and-year-from-time/m-p/432845#M173270</link>
      <description>&lt;P&gt;Thank you...&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jan 2019 12:42:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-month-and-year-from-time/m-p/432845#M173270</guid>
      <dc:creator>sbhatnagar88</dc:creator>
      <dc:date>2019-01-30T12:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract month and year from _time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-month-and-year-from-time/m-p/432846#M173271</link>
      <description>&lt;P&gt;Thank you...&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jan 2019 12:42:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-month-and-year-from-time/m-p/432846#M173271</guid>
      <dc:creator>sbhatnagar88</dc:creator>
      <dc:date>2019-01-30T12:42:32Z</dc:date>
    </item>
  </channel>
</rss>

