<?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: Splunk Report after keyword in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Report-after-keyword/m-p/566730#M197492</link>
    <description>&lt;P&gt;Yes,&amp;nbsp; anything thats after "&lt;SPAN&gt;interested in all events which contain the string".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When I search with -&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;index="foo" | rex "(?&amp;lt;time&amp;gt;\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2},\d{3}).*\Problem creating batch from the downloaded mail with subject: (?&amp;lt;subject&amp;gt;.*)"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;then I am getting following error -&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Error in 'rex' command: Encountered the following error while compiling the regex '(?&amp;lt;time&amp;gt;\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2},\d{3}).*\Problem creating batch from the downloaded mail with subject: (?&amp;lt;subject&amp;gt;.*)': Regex: unknown property name after \P or \p.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But if I put a space between &lt;STRONG&gt;*\&lt;/STRONG&gt; and &lt;STRONG&gt;Problem&lt;/STRONG&gt;, then it is providing all the rows, even without the even I am looking for and not in a tabular form.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 11 Sep 2021 17:52:09 GMT</pubDate>
    <dc:creator>runiyal</dc:creator>
    <dc:date>2021-09-11T17:52:09Z</dc:date>
    <item>
      <title>Splunk Report after keyword</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Report-after-keyword/m-p/566718#M197481</link>
      <description>&lt;P&gt;I have following events in the log. Although there are lot of rows in it but I interested in these rows only and in extracting "time: and anything after "subject:"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;---
2020.1.02 Windows Server 2016 2021-09-11T11:01:19,865 ERROR pool-11-thread-3 Problem creating batch from the downloaded mail with subject: RE: Hello this is first email
---
2020.1.02 Windows Server 2016 2021-09-11T11:01:19,865 ERROR pool-11-thread-3 Problem creating batch from the downloaded mail with subject: Re: Hello this is second email
---
2020.1.02 Windows Server 2016 2021-09-11T11:01:19,865 ERROR pool-11-thread-3 Problem creating batch from the downloaded mail with subject: Re: Hello this is third email
---&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So need to a create a report like this -&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="50%"&gt;Time&lt;/TD&gt;&lt;TD width="50%"&gt;Subject&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;2016 2021-09-11 11:01:19&lt;/TD&gt;&lt;TD width="50%"&gt;RE: Hello this is first email&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;2016 2021-09-11 11:01:21&lt;/TD&gt;&lt;TD width="50%"&gt;Re: Hello this is second email&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;2016 2021-09-11 11:01:22&lt;/TD&gt;&lt;TD width="50%"&gt;Re: Hello this is third email&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Sat, 11 Sep 2021 15:38:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Report-after-keyword/m-p/566718#M197481</guid>
      <dc:creator>runiyal</dc:creator>
      <dc:date>2021-09-11T15:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Report after keyword</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Report-after-keyword/m-p/566724#M197486</link>
      <description>&lt;P&gt;2016 doesn't appear to be part of a time - what is it about these events that would allow you to distinguish them from other events e.g.&amp;nbsp; are you interested in all events which contain the string&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Problem creating batch from the downloaded mail with subject:&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;| rex "(?&amp;lt;time&amp;gt;\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2},\d{3}).*\Problem creating batch from the downloaded mail with subject: (?&amp;lt;subject&amp;gt;.*)"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Sep 2021 16:47:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Report-after-keyword/m-p/566724#M197486</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-09-11T16:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Report after keyword</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Report-after-keyword/m-p/566726#M197488</link>
      <description>&lt;P&gt;This should get you started.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=foo "Server 2016" "subject"
| rex "Server 2016 (?&amp;lt;Time&amp;gt;[^,]+).*subject: (?&amp;lt;Subject&amp;gt;.*)"
| replace "T" with " " in Time
| table Time Subject&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 11 Sep 2021 16:59:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Report-after-keyword/m-p/566726#M197488</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-09-11T16:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Report after keyword</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Report-after-keyword/m-p/566730#M197492</link>
      <description>&lt;P&gt;Yes,&amp;nbsp; anything thats after "&lt;SPAN&gt;interested in all events which contain the string".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When I search with -&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;index="foo" | rex "(?&amp;lt;time&amp;gt;\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2},\d{3}).*\Problem creating batch from the downloaded mail with subject: (?&amp;lt;subject&amp;gt;.*)"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;then I am getting following error -&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Error in 'rex' command: Encountered the following error while compiling the regex '(?&amp;lt;time&amp;gt;\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2},\d{3}).*\Problem creating batch from the downloaded mail with subject: (?&amp;lt;subject&amp;gt;.*)': Regex: unknown property name after \P or \p.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But if I put a space between &lt;STRONG&gt;*\&lt;/STRONG&gt; and &lt;STRONG&gt;Problem&lt;/STRONG&gt;, then it is providing all the rows, even without the even I am looking for and not in a tabular form.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Sep 2021 17:52:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Report-after-keyword/m-p/566730#M197492</guid>
      <dc:creator>runiyal</dc:creator>
      <dc:date>2021-09-11T17:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Report after keyword</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Report-after-keyword/m-p/566732#M197493</link>
      <description>&lt;P&gt;Only command not working is -&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| replace "T" with " " in Time&lt;/LI-CODE&gt;&lt;P&gt;Still in the result I am seeing -&amp;nbsp;2021-09-11&lt;STRONG&gt;T&lt;/STRONG&gt;11:01:19&lt;/P&gt;</description>
      <pubDate>Sat, 11 Sep 2021 19:17:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Report-after-keyword/m-p/566732#M197493</guid>
      <dc:creator>runiyal</dc:creator>
      <dc:date>2021-09-11T19:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Report after keyword</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Report-after-keyword/m-p/566734#M197494</link>
      <description>&lt;P&gt;Sorry, that was a typo, the \ before the P is not needed&lt;/P&gt;</description>
      <pubDate>Sat, 11 Sep 2021 21:20:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Report-after-keyword/m-p/566734#M197494</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-09-11T21:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Report after keyword</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Report-after-keyword/m-p/566737#M197495</link>
      <description>&lt;P&gt;Try this instead of &lt;FONT face="courier new,courier"&gt;replace&lt;/FONT&gt;.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex field=Time mode=sed "s/T/ /"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Sep 2021 23:44:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Report-after-keyword/m-p/566737#M197495</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-09-11T23:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Report after keyword</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Report-after-keyword/m-p/566742#M197497</link>
      <description>&lt;P&gt;Thanks a lot, it worked!&lt;/P&gt;</description>
      <pubDate>Sun, 12 Sep 2021 01:09:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Report-after-keyword/m-p/566742#M197497</guid>
      <dc:creator>runiyal</dc:creator>
      <dc:date>2021-09-12T01:09:00Z</dc:date>
    </item>
  </channel>
</rss>

