evilcelery
evilcelery

Reputation: 16149

Azure Log Analytics: How to display AppServiceConsoleLogs AND AppServiceHTTPLogs together?

I can run the 2 queries below to view the logs for a certain time, separately.

AppServiceConsoleLogs | where TimeGenerated >= datetime('2021-04-10 14:00')

AppServiceHTTPLogs | where TimeGenerated >= datetime('2021-04-10 14:00')

How do I combine these into a single query to view the logs together?

Upvotes: 0

Views: 1499

Answers (1)

Ivan Glasenberg
Ivan Glasenberg

Reputation: 30015

The union operator does the job to show all records from the specified tables.

I used the query below and no the problems you mentioned:

union requests, traces
| where timestamp > ago(1d)

The screenshot of the query result:

enter image description here

If you still have the problem, please share us the screenshot and more detailed info.

Upvotes: 1

Related Questions