<?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 an integer value after colon and display results using timechart? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-an-integer-value-after-colon-and-display-results/m-p/539947#M152731</link>
    <description>&lt;P&gt;I did that manually, using the&amp;nbsp; + Extract New Fields (ss attached):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2021-02-15 at 5.54.31 PM.png" style="width: 289px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/12947i472AAA3C8953F999/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2021-02-15 at 5.54.31 PM.png" alt="Screenshot 2021-02-15 at 5.54.31 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 15 Feb 2021 12:55:01 GMT</pubDate>
    <dc:creator>hishamjan</dc:creator>
    <dc:date>2021-02-15T12:55:01Z</dc:date>
    <item>
      <title>How to extract an integer value after colon and display results using timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-an-integer-value-after-colon-and-display-results/m-p/539879#M152703</link>
      <description>&lt;P&gt;&lt;SPAN class="t"&gt;NOTICE:&lt;/SPAN&gt;&lt;SPAN&gt; &amp;lt;&lt;/SPAN&gt;&lt;SPAN class="t"&gt;script&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="t"&gt;:&lt;/SPAN&gt;&lt;SPAN&gt; [&lt;/SPAN&gt;&lt;SPAN class="t"&gt;3473090307&lt;/SPAN&gt;&lt;SPAN&gt;|&lt;/SPAN&gt;&lt;SPAN class="t"&gt;3167225225&lt;/SPAN&gt;&lt;SPAN&gt;](&lt;/SPAN&gt;&lt;SPAN class="t"&gt;SENDER&lt;/SPAN&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN class="t"&gt;10.65.197.2:5073&lt;/SPAN&gt;&lt;SPAN&gt;])&lt;/SPAN&gt;&lt;SPAN class="t"&gt;:&lt;/SPAN&gt; &lt;SPAN class="t"&gt;Current&lt;/SPAN&gt; &lt;SPAN class="t"&gt;Active&lt;/SPAN&gt; &lt;SPAN class="t"&gt;Inbound&lt;/SPAN&gt; &lt;SPAN class="t"&gt;Calls:&lt;/SPAN&gt;&lt;SPAN&gt; &lt;SPAN class="t"&gt;NOTICE:&lt;/SPAN&gt; &amp;lt;&lt;SPAN class="t"&gt;script&lt;/SPAN&gt;&amp;gt;&lt;SPAN class="t"&gt;:&lt;/SPAN&gt; [&lt;SPAN class="t"&gt;3218481898&lt;/SPAN&gt;|&lt;SPAN class="t"&gt;03116204181&lt;/SPAN&gt;](&lt;SPAN class="t"&gt;SENDER&lt;/SPAN&gt;[&lt;SPAN class="t"&gt;192.168.15.11:7060&lt;/SPAN&gt;])&lt;SPAN class="t"&gt;:&lt;/SPAN&gt; &lt;SPAN class="t"&gt;Current&lt;/SPAN&gt; &lt;SPAN class="t"&gt;Active&lt;/SPAN&gt; &lt;SPAN class="t"&gt;Inbound&lt;/SPAN&gt; &lt;SPAN class="t"&gt;Calls:&lt;/SPAN&gt; 8&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I want to extract the integer value after the colon (:) i.e. 0 and 8 and then display these results as timechart.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm writing it as:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;host=Kamailio NON=Active&lt;BR /&gt;| eval totalCount=mvcount(NON)&lt;BR /&gt;| timechart span=300s count by totalCount&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;p.s: &lt;STRONG&gt;NON&lt;/STRONG&gt; is a field with multiple other values and &lt;STRONG&gt;Active&lt;/STRONG&gt; is one of them which contains those integers which I want to display.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any degree of help would be appreciated.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2021 09:05:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-an-integer-value-after-colon-and-display-results/m-p/539879#M152703</guid>
      <dc:creator>hishamjan</dc:creator>
      <dc:date>2021-02-15T09:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract an integer value after colon and display results using timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-an-integer-value-after-colon-and-display-results/m-p/539887#M152705</link>
      <description>&lt;P&gt;It Is not overly clear what you events look like or which part of the event you are trying to extract. However, assuming it is a number after "Calls: " then this might help&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "Calls: {?&amp;lt;calls&amp;gt;\d+)"&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 15 Feb 2021 10:09:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-an-integer-value-after-colon-and-display-results/m-p/539887#M152705</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-02-15T10:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract an integer value after colon and display results using timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-an-integer-value-after-colon-and-display-results/m-p/539940#M152728</link>
      <description>&lt;P&gt;Hi, thanks for the reply.&amp;nbsp;&lt;/P&gt;&lt;P&gt;To answer your question, it is indeed a number after the " Calls: "&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried this solution but it does seem to search from the entire event and not from what I've typed in the search string:&lt;/P&gt;&lt;P&gt;CAIB="Current Active Inbound Calls:" | rex field=CAIB ".*=(?&amp;lt;number&amp;gt;\d+)\D" | timechart span=30s count by max(number)&lt;/P&gt;&lt;P&gt;where &lt;STRONG&gt;CAIB&lt;/STRONG&gt; is a field that I extracted myself and &lt;STRONG&gt;number&lt;/STRONG&gt; is a variable I used to store the values&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2021 12:28:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-an-integer-value-after-colon-and-display-results/m-p/539940#M152728</guid>
      <dc:creator>hishamjan</dc:creator>
      <dc:date>2021-02-15T12:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract an integer value after colon and display results using timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-an-integer-value-after-colon-and-display-results/m-p/539941#M152729</link>
      <description>&lt;P&gt;How have you extracted CAIB?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2021 12:34:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-an-integer-value-after-colon-and-display-results/m-p/539941#M152729</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-02-15T12:34:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract an integer value after colon and display results using timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-an-integer-value-after-colon-and-display-results/m-p/539947#M152731</link>
      <description>&lt;P&gt;I did that manually, using the&amp;nbsp; + Extract New Fields (ss attached):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2021-02-15 at 5.54.31 PM.png" style="width: 289px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/12947i472AAA3C8953F999/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2021-02-15 at 5.54.31 PM.png" alt="Screenshot 2021-02-15 at 5.54.31 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2021 12:55:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-an-integer-value-after-colon-and-display-results/m-p/539947#M152731</guid>
      <dc:creator>hishamjan</dc:creator>
      <dc:date>2021-02-15T12:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract an integer value after colon and display results using timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-an-integer-value-after-colon-and-display-results/m-p/539950#M152733</link>
      <description>&lt;P&gt;If you have already extracted CAIB, what values do you have in the field?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2021 13:11:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-an-integer-value-after-colon-and-display-results/m-p/539950#M152733</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-02-15T13:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract an integer value after colon and display results using timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-an-integer-value-after-colon-and-display-results/m-p/539952#M152734</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2021-02-15 at 6.19.42 PM.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/12948i28894740C2E89B9F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2021-02-15 at 6.19.42 PM.png" alt="Screenshot 2021-02-15 at 6.19.42 PM.png" /&gt;&lt;/span&gt;these are the fields in it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2021 13:22:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-an-integer-value-after-colon-and-display-results/m-p/539952#M152734</guid>
      <dc:creator>hishamjan</dc:creator>
      <dc:date>2021-02-15T13:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract an integer value after colon and display results using timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-an-integer-value-after-colon-and-display-results/m-p/539962#M152737</link>
      <description>&lt;P&gt;As you can see, the value you have in CAIB is "&lt;SPAN&gt;Current Active Inbound Calls:" which is why the rex does not find any numbers when you specify field CAIB, and why the rex without specifying the field (which will work on _raw) does find the values you are after.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2021 14:02:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-an-integer-value-after-colon-and-display-results/m-p/539962#M152737</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-02-15T14:02:12Z</dc:date>
    </item>
  </channel>
</rss>

