<?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: extract characters after colon in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/extract-characters-after-colon/m-p/423835#M11310</link>
    <description>&lt;P&gt;Hi @ksharany &lt;/P&gt;

&lt;P&gt;Take a look at this.&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/5326iCE3834C661873D08/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Tue, 10 Jul 2018 16:42:47 GMT</pubDate>
    <dc:creator>PowerPacked</dc:creator>
    <dc:date>2018-07-10T16:42:47Z</dc:date>
    <item>
      <title>extract characters after colon</title>
      <link>https://community.splunk.com/t5/Alerting/extract-characters-after-colon/m-p/423829#M11304</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;

&lt;P&gt;My log consists of below &lt;/P&gt;

&lt;P&gt;msg:     2018-07-07 14:30:02.226  INFO 7 --- [nio-8080-exec-6] c.f.p.a.service.CGEventRetimeService     : &amp;lt;&lt;RETIMED invalid="" controlgroup=""&gt;&amp;gt; : &lt;STRONG&gt;12006&lt;/STRONG&gt;&lt;/RETIMED&gt;&lt;/P&gt;

&lt;P&gt;I need to extract the values after &amp;lt;&amp;gt; :  i.e) 12006 alone and create alert to be sent to user . &lt;/P&gt;

&lt;P&gt;How do I do it ?&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jul 2018 10:20:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/extract-characters-after-colon/m-p/423829#M11304</guid>
      <dc:creator>ksharany</dc:creator>
      <dc:date>2018-07-09T10:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: extract characters after colon</title>
      <link>https://community.splunk.com/t5/Alerting/extract-characters-after-colon/m-p/423830#M11305</link>
      <description>&lt;P&gt;This should work:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex "\&amp;lt;\&amp;gt;\s\:\s(?&amp;lt;NUMBERS&amp;gt;\d+)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Let us know if you need more help.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jul 2018 12:49:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/extract-characters-after-colon/m-p/423830#M11305</guid>
      <dc:creator>jodyfsu</dc:creator>
      <dc:date>2018-07-09T12:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: extract characters after colon</title>
      <link>https://community.splunk.com/t5/Alerting/extract-characters-after-colon/m-p/423831#M11306</link>
      <description>&lt;P&gt;Two options: &lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;use the characters in front of it as demarkation point: &lt;CODE&gt;| rex "\&amp;lt;\&amp;gt;\s+:\s+(?&amp;lt;field1&amp;gt;\d+)"&lt;/CODE&gt; &lt;A href="https://regex101.com/r/0na0Fq/1"&gt;https://regex101.com/r/0na0Fq/1&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;if it is really at the end of the event and you don't have other (similar) logs that cause issues, you can grab if from the end of the string: &lt;CODE&gt;| rex "(?&amp;lt;field1&amp;gt;\d+)$"&lt;/CODE&gt; &lt;A href="https://regex101.com/r/0na0Fq/2"&gt;https://regex101.com/r/0na0Fq/2&lt;/A&gt;&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Note that second option is a simpler regex, but less efficient.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jul 2018 12:53:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/extract-characters-after-colon/m-p/423831#M11306</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-07-09T12:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: extract characters after colon</title>
      <link>https://community.splunk.com/t5/Alerting/extract-characters-after-colon/m-p/423832#M11307</link>
      <description>&lt;P&gt;To be more precise  - i need to search for msg with " Invalid Retimed Control Group " text and extract the highlighted felds &lt;/P&gt;

&lt;P&gt;msg: &lt;STRONG&gt;2018-07-07 14:30:02&lt;/STRONG&gt;.226 INFO 7 --- [nio-8080-exec-6] c.f.p.a.service.CGEventRetimeService : &amp;lt; Invalid Retimed  Control Group &amp;gt; : &lt;STRONG&gt;CCF 2018 12006&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;and display the highlighted bold once as separate columns in CSV file  as below &lt;/P&gt;

&lt;P&gt;Date  - 2018-07-07&lt;BR /&gt;
Time - 14:30:02&lt;BR /&gt;
PTVL - CCF &lt;BR /&gt;
MY - 2018&lt;BR /&gt;
CG - 12006&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jul 2018 14:31:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/extract-characters-after-colon/m-p/423832#M11307</guid>
      <dc:creator>ksharany</dc:creator>
      <dc:date>2018-07-10T14:31:39Z</dc:date>
    </item>
    <item>
      <title>Re: extract characters after colon</title>
      <link>https://community.splunk.com/t5/Alerting/extract-characters-after-colon/m-p/423833#M11308</link>
      <description>&lt;P&gt;give this a shot:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex "^msg\:\s(?&amp;lt;DATE&amp;gt;.[^\s]+)\s(?&amp;lt;TIME&amp;gt;.[^\s]+).[^\:]+\:.[^\:]+\:\s(?&amp;lt;PTVL&amp;gt;.[^\s]+)\s(?&amp;lt;MY&amp;gt;.[^\s]+)\s(?&amp;lt;CG&amp;gt;.[^\s]+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 10 Jul 2018 14:48:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/extract-characters-after-colon/m-p/423833#M11308</guid>
      <dc:creator>jodyfsu</dc:creator>
      <dc:date>2018-07-10T14:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: extract characters after colon</title>
      <link>https://community.splunk.com/t5/Alerting/extract-characters-after-colon/m-p/423834#M11309</link>
      <description>&lt;P&gt;You will want to do &lt;BR /&gt;
| table DATE TIME PTVL MY CG&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jul 2018 14:49:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/extract-characters-after-colon/m-p/423834#M11309</guid>
      <dc:creator>jodyfsu</dc:creator>
      <dc:date>2018-07-10T14:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: extract characters after colon</title>
      <link>https://community.splunk.com/t5/Alerting/extract-characters-after-colon/m-p/423835#M11310</link>
      <description>&lt;P&gt;Hi @ksharany &lt;/P&gt;

&lt;P&gt;Take a look at this.&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/5326iCE3834C661873D08/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jul 2018 16:42:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/extract-characters-after-colon/m-p/423835#M11310</guid>
      <dc:creator>PowerPacked</dc:creator>
      <dc:date>2018-07-10T16:42:47Z</dc:date>
    </item>
  </channel>
</rss>

