Forum Discussion

Metzinger35's avatar
Metzinger35
Copper Contributor
Apr 03, 2020
Solved

AIP Log Analytics

Hi,   I'm trying to create a query for Azure Information Protection that will generate a report for the number of classification labels applied during the day that includes the application name and...
  • Metzinger35's avatar
    Metzinger35
    Apr 08, 2020

    CliveWatson 

     

    Thanks for all the help, that works. I even added time generated column combining all labels that was classified during specific days.

     

    InformationProtectionLogs_CL
    | where Activity_s == "NewLabel" or Activity_s == "UpgradeLabel" or Activity_s == "RemoveLabel" or Activity_s == "DowngradeLabel"
    | where ApplicationName_s == "AIP scanner" or ApplicationName_s == "Excel" or ApplicationName_s == "Microsoft Cloud App Security" or ApplicationName_s == "Outlook" or ApplicationName_s == "PowerPoint" or ApplicationName_s == "Word"
    | where LabelName_s in ("Highly Confidential QA","Confidential QA","Internal QA","Public QA")
    | project Label_Name = columnifexists("LabelName_s",""), Application_Name = columnifexists("ApplicationName_s",""), Activity = columnifexists("Activity_s", "NewLabel"), format_datetime(TimeGenerated, 'MM-dd-yyyy')
    | summarize Count = toint(count(Label_Name)) by Label_Name, Application_Name, Activity, TimeGenerated

     

    Results:

     

    Label_NameApplication_NameActivityTimeGeneratedCount
    Highly Confidential QAMicrosoft Cloud App SecurityNewLabel3/23/20202
    Highly Confidential QAOutlookNewLabel3/23/20201

     

Resources