File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -188,7 +188,7 @@ component accessors="true" singleton threadsafe {
188
188
" select
189
189
#getLimitStart () #
190
190
count( id ) as total, #arguments .column #
191
- from cbsecurity_logs
191
+ from # getTable () #
192
192
group by #arguments .column #
193
193
order by count( id ) desc
194
194
#getLimitEnd () #
@@ -207,8 +207,8 @@ component accessors="true" singleton threadsafe {
207
207
struct function getActionsReport (){
208
208
return queryExecute (
209
209
" select
210
- count( id ) as total, action, ( count(id) / ( select count(id) from cbsecurity_logs ) ) * 100 as percentage
211
- from cbsecurity_logs
210
+ count( id ) as total, action, ( count(id) / ( select count(id) from # getTable () # ) ) * 100 as percentage
211
+ from # getTable () #
212
212
group by action" ,
213
213
{},
214
214
{ datasource : variables .settings .firewall .logs .dsn }
@@ -230,7 +230,7 @@ component accessors="true" singleton threadsafe {
230
230
*/
231
231
struct function getBlockTypesReport (){
232
232
return queryExecute (
233
- " select count( id ) as total, blockType from cbsecurity_logs group by blockType" ,
233
+ " select count( id ) as total, blockType from # getTable () # group by blockType" ,
234
234
{},
235
235
{ datasource : variables .settings .firewall .logs .dsn }
236
236
).reduce ( ( results , row ) = > {
You can’t perform that action at this time.
0 commit comments