<?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: I am after how to search to see what are the processes that are creating the most logs in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/I-am-after-how-to-search-to-see-what-are-the-processes-that-are/m-p/101790#M48664</link>
    <description>Hi Thomas,&lt;BR /&gt;&lt;BR /&gt;You can review the following example SQL that should return a list of processes ordered by the amount of logging they perform:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;
&lt;PRE class="language-sql"&gt;&lt;CODE&gt;SELECT Results.name
	, Results.CountOfSessionLogs
 FROM (
	 SELECT P.name
		, COUNT(*) AS CountOfSessionLogs
	 FROM BPAProcess P WITH (NOLOCK)
	 INNER JOIN BPASession S WITH (NOLOCK) ON P.processid = S.processid
	 INNER JOIN BPASessionLog_NonUnicode LNU WITH (NOLOCK)ON S.sessionnumber = LNU.sessionnumber
	 GROUP BY P.name 
	 ) Results
ORDER BY Results.CountOfSessionLogs DESC​&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BR /&gt;&lt;BR /&gt;Please note this SQL statement is provided as an EXAMPLE and should be reviewed and amended if necessary by your DBA before use.</description>
    <pubDate>Thu, 22 Sep 2022 17:57:23 GMT</pubDate>
    <dc:creator>steven.boggs</dc:creator>
    <dc:date>2022-09-22T17:57:23Z</dc:date>
    <item>
      <title>I am after how to search to see what are the processes that are creating the most logs</title>
      <link>https://community.blueprism.com/t5/Product-Forum/I-am-after-how-to-search-to-see-what-are-the-processes-that-are/m-p/101789#M48663</link>
      <description>I am sure I had a script to run on the DB that provided the processes that was creating logs which allowed me to switch off the logs so that the DB doesn't fill up. Has anyone got a script or is there a way I can check in BP without going through each process?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Many Thanks</description>
      <pubDate>Thu, 22 Sep 2022 14:36:55 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/I-am-after-how-to-search-to-see-what-are-the-processes-that-are/m-p/101789#M48663</guid>
      <dc:creator>WesIvison5451</dc:creator>
      <dc:date>2022-09-22T14:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: I am after how to search to see what are the processes that are creating the most logs</title>
      <link>https://community.blueprism.com/t5/Product-Forum/I-am-after-how-to-search-to-see-what-are-the-processes-that-are/m-p/101790#M48664</link>
      <description>Hi Thomas,&lt;BR /&gt;&lt;BR /&gt;You can review the following example SQL that should return a list of processes ordered by the amount of logging they perform:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;
&lt;PRE class="language-sql"&gt;&lt;CODE&gt;SELECT Results.name
	, Results.CountOfSessionLogs
 FROM (
	 SELECT P.name
		, COUNT(*) AS CountOfSessionLogs
	 FROM BPAProcess P WITH (NOLOCK)
	 INNER JOIN BPASession S WITH (NOLOCK) ON P.processid = S.processid
	 INNER JOIN BPASessionLog_NonUnicode LNU WITH (NOLOCK)ON S.sessionnumber = LNU.sessionnumber
	 GROUP BY P.name 
	 ) Results
ORDER BY Results.CountOfSessionLogs DESC​&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BR /&gt;&lt;BR /&gt;Please note this SQL statement is provided as an EXAMPLE and should be reviewed and amended if necessary by your DBA before use.</description>
      <pubDate>Thu, 22 Sep 2022 17:57:23 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/I-am-after-how-to-search-to-see-what-are-the-processes-that-are/m-p/101790#M48664</guid>
      <dc:creator>steven.boggs</dc:creator>
      <dc:date>2022-09-22T17:57:23Z</dc:date>
    </item>
  </channel>
</rss>

