View logs

Recommender logs record changes to recommendation and insight state.

Permissions

Identity and Access Management permissions and roles determine which logs you can view and export.

To view Recommender logs, you must have one of the following IAM roles in the project that contains your logs:

  • One of the basic roles: Project Owner, Project Editor, or Project Viewer.
  • The Cloud Logging Logs Viewer role.
  • A custom IAM role with the logging.logEntries.list IAM permission.

Viewing logs

Recommendation Logs

To view recommendation action logs:

  1. Go to the Google Cloud Observability Logging > Logs(Logs Explorer) page in the Google Cloud console:

    Go to the Logs Explorer page

  2. Select an existing Google Cloud project at the top of the page or create a new project.

  3. In the first drop-down menu, select Recommender.

  4. Expand a log entry to view the entry details. The following example shows a claimed recommendation.

      { 
      
     i 
     nsert 
     Id 
     : 
      
     "t51fxaa1" 
      
     jso 
     n 
     Payload 
     : 
      
     { 
      
     @ 
     t 
     ype 
     : 
      
     "type.googleapis.com/google.cloud.recommender.logging.v1.ActionLog" 
      
     ac 
     t 
     or 
     : 
      
     "user@gmail.com" 
      
     recomme 
     n 
     da 
     t 
     io 
     n 
     Name 
     : 
      
     "projects/my-recommender-project/locations/global/recommenders/google.iam.policy.Recommender/recommendations/r1" 
      
     s 
     tate 
     : 
      
     "CLAIMED" 
      
     s 
     tate 
     Me 
     ta 
     da 
     ta 
     : 
      
     { 
      
     my_me 
     ta 
     da 
     ta 
     : 
      
     "Some metadata." 
      
     } 
      
     } 
      
     logName 
     : 
      
     "projects/my-recommender-project/logs/recommender.googleapis.com%2Factions" 
      
     receiveTimes 
     ta 
     mp 
     : 
      
     "2019-07-01T21:55:06.950795284Z" 
      
     resource 
     : 
      
     { 
      
     labels 
     : 
      
     { 
      
     loca 
     t 
     io 
     n 
     : 
      
     "global" 
      
     projec 
     t 
     _id 
     : 
      
     "my-recommender-project" 
      
     recomme 
     n 
     der_id 
     : 
      
     "google.iam.policy.Recommender" 
      
     } 
      
     t 
     ype 
     : 
      
     "recommender" 
      
     } 
      
     severi 
     t 
     y 
     : 
      
     "INFO" 
      
     t 
     imes 
     ta 
     mp 
     : 
      
     "2019-07-01T21:55:06.529Z" 
     } 
     
    

Insight Logs

To view insight action logs:

  1. Go to the Google Cloud Observability Logging > Logs(Logs Explorer) page in the Google Cloud console:

    Go to the Logs Explorer page

  2. Select an existing Google Cloud project at the top of the page or create a new project.

  3. In the first drop-down menu, select InsightType.

  4. Expand a log entry to view the entry details. The following example shows an accepted insight.

      { 
      
     i 
     nsert 
     Id 
     : 
      
     "t51fxaa1" 
      
     jso 
     n 
     Payload 
     : 
      
     { 
      
     @ 
     t 
     ype 
     : 
      
     "type.googleapis.com/google.cloud.recommender.logging.v1.InsightActionLog" 
      
     ac 
     t 
     or 
     : 
      
     "user@gmail.com" 
      
     i 
     ns 
     igh 
     t 
     : 
      
     "projects/my-recommender-project/locations/global/insightTypes/google.iam.policy.Insight/insights/i1" 
      
     s 
     tate 
     : 
      
     "ACCEPTED" 
      
     s 
     tate 
     Me 
     ta 
     da 
     ta 
     : 
      
     { 
      
     my_me 
     ta 
     da 
     ta 
     : 
      
     "Some metadata." 
      
     } 
      
     } 
      
     logName 
     : 
      
     "projects/my-recommender-project/logs/recommender.googleapis.com%2Factions" 
      
     receiveTimes 
     ta 
     mp 
     : 
      
     "2019-07-01T21:55:06.950795284Z" 
      
     resource 
     : 
      
     { 
      
     labels 
     : 
      
     { 
      
     loca 
     t 
     io 
     n 
     : 
      
     "global" 
      
     projec 
     t 
     _id 
     : 
      
     "my-recommender-project" 
      
     i 
     ns 
     igh 
     t 
     _ 
     t 
     ype_id 
     : 
      
     "google.iam.policy.Recommender" 
      
     } 
      
     t 
     ype 
     : 
      
     "recommender_insight_type" 
      
     } 
      
     severi 
     t 
     y 
     : 
      
     "INFO" 
      
     t 
     imes 
     ta 
     mp 
     : 
      
     "2019-07-01T21:55:06.529Z" 
     } 
     
    
Create a Mobile Website
View Site in Mobile | Classic
Share by: