Differences between revisions 2 and 3
Revision 2 as of 2020-06-10 06:32:35
Size: 539
Editor: PieterSmit
Comment:
Revision 3 as of 2020-06-14 20:35:24
Size: 562
Editor: PieterSmit
Comment:
Deletions are marked like this. Additions are marked like this.
Line 18: Line 18:
----
CategoryLogging

k8s/Azure/KustoLogs

  • Queries in Azure Kusto Query language.
  • Find logs for specific pod/namespace

    let _podInventory = ( KubePodInventory 
           | where Namespace has "MyNamespace-prd" 
           | where ContainerName has_any ('container1', 'container2' , 'container3' )
    );
    ContainerLog
    | where TimeGenerated < ago(4d)
    | join kind=inner _podInventory on $left.ContainerID == $right.ContainerID
    | limit 5000
    | project LogEntry, Name1, Namespace , ContainerName, TimeGenerated, ClusterId, PodRestartCount 


CategoryLogging

k8s/Azure/KustoLogs (last edited 2020-06-24 18:57:44 by PieterSmit)