<?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 only date from the mentioned string in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-only-date-from-the-mentioned-string/m-p/396653#M172832</link>
    <description>&lt;P&gt;hi&lt;BR /&gt;
please accept my answer.&lt;/P&gt;</description>
    <pubDate>Fri, 01 Mar 2019 08:53:04 GMT</pubDate>
    <dc:creator>vnravikumar</dc:creator>
    <dc:date>2019-03-01T08:53:04Z</dc:date>
    <item>
      <title>How to extract only date from the mentioned string</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-only-date-from-the-mentioned-string/m-p/396648#M172827</link>
      <description>&lt;P&gt;Below is the kind of string i have and I want to extract only date from it.&lt;/P&gt;

&lt;P&gt;Available string: 2019-02-24T16:05:37.000ZT16:05:37.000Z&lt;BR /&gt;
Desired output: 2019-02-24&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 25 Feb 2019 07:22:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-only-date-from-the-mentioned-string/m-p/396648#M172827</guid>
      <dc:creator>sbhatnagar88</dc:creator>
      <dc:date>2019-02-25T07:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract only date from the mentioned string</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-only-date-from-the-mentioned-string/m-p/396649#M172828</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;Try like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;rex field=specify_your_field "(?P&amp;lt;date&amp;gt;\d{4}-\d{2}-\d{2})"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 25 Feb 2019 07:29:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-only-date-from-the-mentioned-string/m-p/396649#M172828</guid>
      <dc:creator>vnravikumar</dc:creator>
      <dc:date>2019-02-25T07:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract only date from the mentioned string</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-only-date-from-the-mentioned-string/m-p/396650#M172829</link>
      <description>&lt;P&gt;That worked...Thanks.. In case I need time as well in my output?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Feb 2019 08:55:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-only-date-from-the-mentioned-string/m-p/396650#M172829</guid>
      <dc:creator>sbhatnagar88</dc:creator>
      <dc:date>2019-02-25T08:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract only date from the mentioned string</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-only-date-from-the-mentioned-string/m-p/396651#M172830</link>
      <description>&lt;P&gt;Hi @sbhatnagar88&lt;/P&gt;

&lt;P&gt;Please try the following and accept the answer.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(?P&amp;lt;date&amp;gt;\d{4}-\d{2}-\d{2})T(?P&amp;lt;Time&amp;gt;\d{2}:\d{2}:\d{2})
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 25 Feb 2019 15:18:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-only-date-from-the-mentioned-string/m-p/396651#M172830</guid>
      <dc:creator>vnravikumar</dc:creator>
      <dc:date>2019-02-25T15:18:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract only date from the mentioned string</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-only-date-from-the-mentioned-string/m-p/396652#M172831</link>
      <description>&lt;P&gt;Thanks...That worked..&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2019 08:38:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-only-date-from-the-mentioned-string/m-p/396652#M172831</guid>
      <dc:creator>sbhatnagar88</dc:creator>
      <dc:date>2019-03-01T08:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract only date from the mentioned string</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-only-date-from-the-mentioned-string/m-p/396653#M172832</link>
      <description>&lt;P&gt;hi&lt;BR /&gt;
please accept my answer.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2019 08:53:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-only-date-from-the-mentioned-string/m-p/396653#M172832</guid>
      <dc:creator>vnravikumar</dc:creator>
      <dc:date>2019-03-01T08:53:04Z</dc:date>
    </item>
  </channel>
</rss>

