<?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 build a list of simultaneously running threads? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-build-a-list-of-simultaneously-running-threads/m-p/249813#M189272</link>
    <description>&lt;P&gt;that is the magic! thanks! and not so hard after all. should be put in the toolbox for severe cases like that. accepted with gratitude. thank you!&lt;/P&gt;</description>
    <pubDate>Tue, 30 Aug 2016 10:03:44 GMT</pubDate>
    <dc:creator>fiodar_ram</dc:creator>
    <dc:date>2016-08-30T10:03:44Z</dc:date>
    <item>
      <title>How to build a list of simultaneously running threads?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-build-a-list-of-simultaneously-running-threads/m-p/249801#M189260</link>
      <description>&lt;P&gt;Given the log events, containing time, name of thread and whether the thread has started or stopped :&lt;BR /&gt;
_time , thread_name, start/end&lt;/P&gt;

&lt;P&gt;How to build a list of thread names that a currently running?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:45:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-build-a-list-of-simultaneously-running-threads/m-p/249801#M189260</guid>
      <dc:creator>fiodar_ram</dc:creator>
      <dc:date>2020-09-29T10:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to build a list of simultaneously running threads?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-build-a-list-of-simultaneously-running-threads/m-p/249802#M189261</link>
      <description>&lt;P&gt;Have you looked at  this&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/6.4.2/SearchReference/Concurrency"&gt;https://docs.splunk.com/Documentation/Splunk/6.4.2/SearchReference/Concurrency&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2016 16:18:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-build-a-list-of-simultaneously-running-threads/m-p/249802#M189261</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-08-25T16:18:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to build a list of simultaneously running threads?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-build-a-list-of-simultaneously-running-threads/m-p/249803#M189262</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;

&lt;P&gt;It was exactly what i was looking for! It worked like a charm and i could calculate the count.&lt;/P&gt;

&lt;P&gt;But, out of curiosity and naughtiness: how to not just count using concurrency command, but how to build a list?&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2016 12:27:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-build-a-list-of-simultaneously-running-threads/m-p/249803#M189262</guid>
      <dc:creator>fiodar_ram</dc:creator>
      <dc:date>2016-08-26T12:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to build a list of simultaneously running threads?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-build-a-list-of-simultaneously-running-threads/m-p/249804#M189263</link>
      <description>&lt;P&gt;You could try something like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | stats values(thread_name) as threads by start
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 26 Aug 2016 13:06:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-build-a-list-of-simultaneously-running-threads/m-p/249804#M189263</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-08-26T13:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to build a list of simultaneously running threads?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-build-a-list-of-simultaneously-running-threads/m-p/249805#M189264</link>
      <description>&lt;P&gt;thank you, but what if i want to know how the list changes over time? &lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2016 16:00:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-build-a-list-of-simultaneously-running-threads/m-p/249805#M189264</guid>
      <dc:creator>fiodar_ram</dc:creator>
      <dc:date>2016-08-26T16:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to build a list of simultaneously running threads?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-build-a-list-of-simultaneously-running-threads/m-p/249806#M189265</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | bin span=1h start | stats values(thread_name) as threads count(thread_name) as count by start
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 26 Aug 2016 16:05:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-build-a-list-of-simultaneously-running-threads/m-p/249806#M189265</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-08-26T16:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to build a list of simultaneously running threads?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-build-a-list-of-simultaneously-running-threads/m-p/249807#M189266</link>
      <description>&lt;P&gt;Just putting this in as an answer - &lt;A href="https://docs.splunk.com/Documentation/Splunk/6.4.2/SearchReference/Concurrency"&gt;https://docs.splunk.com/Documentation/Splunk/6.4.2/SearchReference/Concurrency&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2016 20:11:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-build-a-list-of-simultaneously-running-threads/m-p/249807#M189266</guid>
      <dc:creator>jdonn_splunk</dc:creator>
      <dc:date>2016-08-26T20:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to build a list of simultaneously running threads?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-build-a-list-of-simultaneously-running-threads/m-p/249808#M189267</link>
      <description>&lt;P&gt;this would give the names and a count of threads, which have started (or have any event) in each hour. but what if a thread has started before an hour and did not stop and did not emit any events in the log. it would not be counted. &lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2016 14:57:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-build-a-list-of-simultaneously-running-threads/m-p/249808#M189267</guid>
      <dc:creator>fiodar_ram</dc:creator>
      <dc:date>2016-08-29T14:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to build a list of simultaneously running threads?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-build-a-list-of-simultaneously-running-threads/m-p/249809#M189268</link>
      <description>&lt;P&gt;but how to build a list of thread names and how the list changes over time?&lt;BR /&gt;
example:&lt;BR /&gt;
time | thread names&lt;BR /&gt;
1h    | a,b&lt;BR /&gt;
2h    | a,b,c&lt;BR /&gt;
3H    | a&lt;BR /&gt;
...&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2016 14:59:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-build-a-list-of-simultaneously-running-threads/m-p/249809#M189268</guid>
      <dc:creator>fiodar_ram</dc:creator>
      <dc:date>2016-08-29T14:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to build a list of simultaneously running threads?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-build-a-list-of-simultaneously-running-threads/m-p/249810#M189269</link>
      <description>&lt;P&gt;You best bet is to use the &lt;CODE&gt;concurrency&lt;/CODE&gt; command to get accurate results. Having said that, this will give you everything that started within the hour. This will not give you events that overlap hours. So if it starts at 11:00 and ends at 12:15, will be counted in the 11:00 hr. count&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2016 15:20:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-build-a-list-of-simultaneously-running-threads/m-p/249810#M189269</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-08-29T15:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to build a list of simultaneously running threads?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-build-a-list-of-simultaneously-running-threads/m-p/249811#M189270</link>
      <description>&lt;P&gt;how to list a thread name in the 12:00 hr, if it starts at 11:00 and ends at 13:15? that is the question.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2016 15:26:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-build-a-list-of-simultaneously-running-threads/m-p/249811#M189270</guid>
      <dc:creator>fiodar_ram</dc:creator>
      <dc:date>2016-08-29T15:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to build a list of simultaneously running threads?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-build-a-list-of-simultaneously-running-threads/m-p/249812#M189271</link>
      <description>&lt;P&gt;Try something like this (you'll have to tweak it)&lt;/P&gt;

&lt;P&gt;... | eval range=mvrange(start, end, "1h") | mvexpand range | bin span=1h range | stats values(thread_name) as threads count(thread_name) as count by range&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:50:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-build-a-list-of-simultaneously-running-threads/m-p/249812#M189271</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2020-09-29T10:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to build a list of simultaneously running threads?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-build-a-list-of-simultaneously-running-threads/m-p/249813#M189272</link>
      <description>&lt;P&gt;that is the magic! thanks! and not so hard after all. should be put in the toolbox for severe cases like that. accepted with gratitude. thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2016 10:03:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-build-a-list-of-simultaneously-running-threads/m-p/249813#M189272</guid>
      <dc:creator>fiodar_ram</dc:creator>
      <dc:date>2016-08-30T10:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to build a list of simultaneously running threads?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-build-a-list-of-simultaneously-running-threads/m-p/249814#M189273</link>
      <description>&lt;P&gt;so to sum up:&lt;BR /&gt;
1. | concurrency - for counts&lt;BR /&gt;
2. | eval range=mvrange(start, end, "1h") | mvexpand range | bin span=1h range | stats values(thread_name) as threads count(thread_name) as count by range - for lists, to build missing event entries in time&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:51:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-build-a-list-of-simultaneously-running-threads/m-p/249814#M189273</guid>
      <dc:creator>fiodar_ram</dc:creator>
      <dc:date>2020-09-29T10:51:08Z</dc:date>
    </item>
  </channel>
</rss>

