Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

KQL – Union of table with filtered table

I am trying to write a KQL query to get exceptions together with requests which satisfy a given where clause. The where clause applies only to the requests table. In other words, I want to make the union of the exceptions table with a second table which is requests, filtered by a where clause.

I started with

exceptions
| union requests

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

and I do not know how to specify the where clause for the requests table. It would be

where name contains "health" and success == false

I could not figure this out based on the existing examples.
Can anyone help? Thanks in advance!

>Solution :

It is covered by the documentation, including multiple examples.

union exceptions, (requests | where name contains "health" and success == false)

or

exceptions
| union (requests | where name contains "health" and success == false)
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading