I am trying to find out details about suspicious traffic on my website which is running on Google Cloud (Google App Engine with Java, to be more specific). One idea is to analyze which IP addresses are sending requests very often. In SQL I would do something like
SELECT
protoPayload.ip,
COUNT(protoPayload.ip) AS `ip_occurrence`
FROM
foo /* TODO replace foo with correct table name */
WHERE
protoPayload.ip NOT LIKE '66.249.77.%' /* ignore Google bots */
GROUP BY
protoPayload.ip
ORDER BY
`ip_occurrence` DESC
LIMIT 100
But I have no idea how to do this with Logs Explorer. “Log Analytics” seems to allow such SQL, but requires to use it only on non-production projects.
I also tried to download the logs from Logs Explorer, but there is a limit of 10,000 logs, which is not enough at all.
Is there any easy way?
On the bigger picture, I am trying to get my AdSense account reopened. So far I failed. Maybe the proof I provided, my Google Analytics data, is not strong enough. The field description on the form mentions IP addresses. But in Google Analytics I don't see any IP addresses ...
Group by
, only thinks similar is log engry count. You might also createFeature Request
via IssueTracker – LearnGroup By
there? Here you have guide how to createsink
. Other destination for sink would be Pub/Sub and CloudStorage, however for your scenario BigQuery might be the solution. – Learn