Community FAQ
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Mister_Nobody
Honored Sweeper II

LS has one powerful chart. It is line-diagram. It can show more than 2 column data.

I have developed SQL-query to track most generated events.

Firstly, I have selected sourcenames of events. Then create report.

You should use report's name with prefix "Chart:".

Chart: Events last 14 days

Query:

Select Top 1000000 Convert(nVARCHAR(10),tblNtlog.TimeGenerated,102) thedate,
  Sum(Case
    When tblNtlogSource.Sourcename = 'microsoft-windows-distributedcom' Then 1
    Else 0
  End) [microsoft-windows-distributedcom],
  Sum(Case
    When tblNtlogSource.Sourcename = 'application error' Then 1
    Else 0
  End) [application error],
  Sum(Case
    When tblNtlogSource.Sourcename = 'Microsoft-Windows-Security-Kerberos' Then
      1
    Else 0
  End) [Microsoft-Windows-Security-Kerberos],
  Sum(Case
    When tblNtlogSource.Sourcename = 'service control manager' Then 1
    Else 0
  End) [service control manager],
  Sum(Case
    When tblNtlogSource.Sourcename = 'microsoft-windows-wmi' Then 1
    Else 0
  End) [microsoft-windows-wmi],
  Sum(Case
    When tblNtlogSource.Sourcename = 'Real-time file protection' Then 1
    Else 0
  End) [Real-time file protection]
From tblNtlog
  Inner Join tblNtlogSource On tblNtlogSource.SourcenameID =
      tblNtlog.SourcenameID
Where tblNtlog.TimeGenerated > GetDate() - 14 And tblNtlog.TimeGenerated <
  GetDate() + 1 And tblNtlog.Eventtype = 1
Group By Convert(nVARCHAR(10),tblNtlog.TimeGenerated,102)
Order By thedate

After create report you can add Chart Report on Tab via drag&drop it

Mister_Nobody_0-1706601764914.png

Choose line-type and show label. My result (six lines on same chart):

Mister_Nobody_1-1706601854400.png

 

 

 

1 REPLY 1
Obi_1_Cinobi
Lansweeper Tech Support
Lansweeper Tech Support

Hello there!

Another nice one! ðŸ˜Ž

Reports & Analytics

Ask about reports you're interested in and share reports you've created. Subscribe to receive daily updates of reports shared in the Community.

New to Lansweeper?

Try Lansweeper For Free

Experience Lansweeper with your own data.
Sign up now for a 14-day free trial.

Try Now