Hi All
It seems that if I try to create a report a date and filter for the "info" virus, I get erros on the system log like the ones below:
pic attached. Also I am getting 100% CPU whilst trying to export a report to pdf format
root 25157 79.0 11.9 275192 244892 ? R 19:25 14:24 reporting export
Thanks
It seems that if I try to create a report a date and filter for the "info" virus, I get erros on the system log like the ones below:
Code:
2011:12:30-19:31:59 **** postgres[25349]: [2-1] ERROR: column "action" does not exist at character 570
2011:12:30-19:31:59 **** postgres[25349]: [2-2] STATEMENT: select sum(transfer) as traffic, pct(cast(sum(transfer) as bigint), cast(x.trafsum as bigint)) as traffic_pct, site as site, pct(cast(extract(epoch from sum(duration)) as bigint), cast(extract(epoch from x.dursum) as bigint)) as dur_pct, sum(requests) as requests, pct(cast(sum(requests) as bigint), cast(x.reqsum as bigint)) as req_pct, count(distinct(site)) as cnt_domain, sum(duration) as duration, sum(pages) as pages from websecvisits_data cross join (select sum(duration) as dursum, sum(transfer) as trafsum, sum(requests) as reqsum from websecvisits_data where action = 'blocked' and logday between '2011-12-29' and '2011-12-29') as x where action = 'blocked' and logday between '2011-12-29' and '2011-12-29' group by site, x.dursum, x.trafsum, x.reqsum order by traffic DESC limit 10 offset 0
2011:12:30-19:32:14 **** postgres[25365]: [2-1] ERROR: column "action" does not exist at character 570
2011:12:30-19:32:14 **** postgres[25365]: [2-2] STATEMENT: select sum(transfer) as traffic, pct(cast(sum(transfer) as bigint), cast(x.trafsum as bigint)) as traffic_pct, site as site, pct(cast(extract(epoch from sum(duration)) as bigint), cast(extract(epoch from x.dursum) as bigint)) as dur_pct, sum(requests) as requests, pct(cast(sum(requests) as bigint), cast(x.reqsum as bigint)) as req_pct, count(distinct(site)) as cnt_domain, sum(duration) as duration, sum(pages) as pages from websecvisits_data cross join (select sum(duration) as dursum, sum(transfer) as trafsum, sum(requests) as reqsum from websecvisits_data where action = 'blocked' and logday between '2011-12-29' and '2011-12-29') as x where action = 'blocked' and logday between '2011-12-29' and '2011-12-29' group by site, x.dursum, x.trafsum, x.reqsum order by traffic DESC limit 10 offset 0
2011:12:30-19:32:16 **** postgres[25368]: [2-1] ERROR: column "action" does not exist at character 570
2011:12:30-19:32:16 **** postgres[25368]: [2-2] STATEMENT: select sum(transfer) as traffic, pct(cast(sum(transfer) as bigint), cast(x.trafsum as bigint)) as traffic_pct, site as site, pct(cast(extract(epoch from sum(duration)) as bigint), cast(extract(epoch from x.dursum) as bigint)) as dur_pct, sum(requests) as requests, pct(cast(sum(requests) as bigint), cast(x.reqsum as bigint)) as req_pct, count(distinct(site)) as cnt_domain, sum(duration) as duration, sum(pages) as pages from websecvisits_data cross join (select sum(duration) as dursum, sum(transfer) as trafsum, sum(requests) as reqsum from websecvisits_data where action = 'blocked' and logday between '2011-12-29' and '2011-12-29') as x where action = 'blocked' and logday between '2011-12-29' and '2011-12-29' group by site, x.dursum, x.trafsum, x.reqsum order by traffic DESC limit 10 offset 0
2011:12:30-19:32:19 **** postgres[25515]: [2-1] ERROR: column "action" does not exist at character 611
2011:12:30-19:32:19 **** postgres[25515]: [2-2] STATEMENT: select sum(transfer) as traffic, pct(cast(sum(transfer) as bigint), cast(x.trafsum as bigint)) as traffic_pct, site as site, pct(cast(extract(epoch from sum(duration)) as bigint), cast(extract(epoch from x.dursum) as bigint)) as dur_pct, sum(requests) as requests, pct(cast(sum(requests) as bigint), cast(x.reqsum as bigint)) as req_pct, count(distinct(site)) as cnt_domain, sum(duration) as duration, sum(pages) as pages from websecvisits_data cross join (select sum(duration) as dursum, sum(transfer) as trafsum, sum(requests) as reqsum from websecvisits_data where 'Internal Users' = ANY (departments) and action = 'blocked' and logday between '2011-12-29' and '2011-12-29') as x where 'Internal Users' = ANY (departments) and action = 'blocked' and logday between '2011-12-29' and '2011-12-29' group by site, x.dursum, x.trafsum, x.reqsum order by traffic DESC limit 10 offset 0
2011:12:30-19:32:23 **** postgres[25518]: [2-1] ERROR: column "action" does not exist at character 611
2011:12:30-19:32:23 **** postgres[25518]: [2-2] STATEMENT: select sum(transfer) as traffic, pct(cast(sum(transfer) as bigint), cast(x.trafsum as bigint)) as traffic_pct, site as site, pct(cast(extract(epoch from sum(duration)) as bigint), cast(extract(epoch from x.dursum) as bigint)) as dur_pct, sum(requests) as requests, pct(cast(sum(requests) as bigint), cast(x.reqsum as bigint)) as req_pct, count(distinct(site)) as cnt_domain, sum(duration) as duration, sum(pages) as pages from websecvisits_data cross join (select sum(duration) as dursum, sum(transfer) as trafsum, sum(requests) as reqsum from websecvisits_data where 'Internal Users' = ANY (departments) and action = 'blocked' and logday between '2011-12-30' and '2011-12-30') as x where 'Internal Users' = ANY (departments) and action = 'blocked' and logday between '2011-12-30' and '2011-12-30' group by site, x.dursum, x.trafsum, x.reqsum order by traffic DESC limit 10 offset 0
2011:12:30-19:32:25 **** postgres[25521]: [2-1] ERROR: column "action" does not exist at character 611
2011:12:30-19:32:25 **** postgres[25521]: [2-2] STATEMENT: select sum(transfer) as traffic, pct(cast(sum(transfer) as bigint), cast(x.trafsum as bigint)) as traffic_pct, site as site, pct(cast(extract(epoch from sum(duration)) as bigint), cast(extract(epoch from x.dursum) as bigint)) as dur_pct, sum(requests) as requests, pct(cast(sum(requests) as bigint), cast(x.reqsum as bigint)) as req_pct, count(distinct(site)) as cnt_domain, sum(duration) as duration, sum(pages) as pages from websecvisits_data cross join (select sum(duration) as dursum, sum(transfer) as trafsum, sum(requests) as reqsum from websecvisits_data where 'Internal Users' = ANY (departments) and action = 'blocked' and logday between '2011-12-30' and '2011-12-30') as x where 'Internal Users' = ANY (departments) and action = 'blocked' and logday between '2011-12-30' and '2011-12-30' group by site, x.dursum, x.trafsum, x.reqsum order by traffic DESC limit 10 offset 0
2011:12:30-19:32:43 **** postgres[25569]: [2-1] ERROR: column "info" does not exist at character 570
root 25157 79.0 11.9 275192 244892 ? R 19:25 14:24 reporting export
Thanks