Skip to content
Advertisement

Group similar URLs

I am looking to fetch all requests to xmlrpc.php and wp-login.php and have them wildcarded in the statement.

But this presents an issue, as it doesn’t output the data in only two rows for xmlrpc and wp-login, but also includes the URLs with a query attached. Hoping to have it include every URL requested, but combine them to show as just xmlrpc.php or wp-login.php

I am a mysql n00b and was playing around with a substr replace and group_concat but couldn’t get it to work.

Any help would be much appreciated. Thanks!

Advertisement

Answer

For BigQuery Standard SQL

Below adjusted query should do the “trick”

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement