Forum Discussion

Dean_Gross's avatar
Dean_Gross
Silver Contributor
Dec 29, 2021
Solved

Get listing of logs

It is easy to see all of the logs in Sentinel/Log Analytics workspace, but how can we easily export a listing of those logs? not the data, just the log names

  • Did you just want the table names? If so -

    union withsource= table *
    | distinct table

    And if you are interested in the busiest tables

    union withsource= table *
    | summarize count()by table
  • m_zorich's avatar
    m_zorich
    Iron Contributor
    Did you just want the table names? If so -

    union withsource= table *
    | distinct table

    And if you are interested in the busiest tables

    union withsource= table *
    | summarize count()by table
    • Clive_Watson's avatar
      Clive_Watson
      Bronze Contributor

      m_zorich Dean_Gross 

      One other method is to use the Usage Table.  

       

      Usage is an aggregated Table that knows about all the other Tables, so you can query that for better performance (runs in less than half the time on my data).
      This is not a big issue for a simple query like these examples, but can help if this ends up being frequent or the query more complex.

      Usage
      | summarize count() by DataType

       

      • GaryBushey's avatar
        GaryBushey
        Bronze Contributor
        Wouldn't you need to take into account the Quantity field to really determine which ones were busy or do you just care about the number of hits rather than how much data each table ingested?

Resources