Email Log Search equivalent?

363 views
Skip to first unread message

Adam Wanninger

unread,
Aug 26, 2021, 5:42:03 PM8/26/21
to GAM for Google Workspace
I have been tasked with locating emails from certain addresses and domains each day.  I tried to run this command but it took hours to run and I didn't know how to limit the results to the last 24 hours:

gam all users show message query "from:doubletre...@res.hilton.com"

I'm looking for something that will generate a report similar to what I can manually create through the admin console in Reporting > Email Log Search.  

Jay Lee

unread,
Aug 26, 2021, 5:47:23 PM8/26/21
to google-ap...@googlegroups.com
Email log search is not available via api. However if you have Enterprise edition you can log to bigquery and perform searches there:


Jay

--
You received this message because you are subscribed to the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/e998931f-4c39-4b71-b4d8-214f1ce0a1dbn%40googlegroups.com.

Taylor Coons

unread,
Aug 26, 2021, 5:50:50 PM8/26/21
to google-ap...@googlegroups.com
How about using the investigation tool under security?  You can do searches and download results.

Jay Lee

unread,
Aug 26, 2021, 5:51:54 PM8/26/21
to google-ap...@googlegroups.com
Investigation tool does not have an API. GAM needs an API.

Jay

Taylor Coons

unread,
Aug 26, 2021, 6:12:27 PM8/26/21
to google-ap...@googlegroups.com
I understand this is the gam group.  I don't know all the requirements of the request other than a tool similar to the email log search.  The investigation tool would give the requested report and it could be downloaded albeit still manually.  

Jay Lee

unread,
Aug 26, 2021, 6:22:26 PM8/26/21
to google-ap...@googlegroups.com
What I am saying is that this is not feasible with Google Workspace today.

Jay

Adam Wanninger

unread,
Aug 26, 2021, 6:24:33 PM8/26/21
to GAM for Google Workspace
Thanks for all the input.  We do have the Plus licenses, so I might be able to set up a report or alert that will be sent to me when we receive emails meeting certain criteria?  I'll have to do some learnin' and it could benefit me long term.

BigQuery seems like a very powerful tool also and if I can automate the generation of the reports from it, I could fill this need and learn something cool at the same time.  :)
Reply all
Reply to author
Forward
0 new messages