Forum Discussion
akshay250692
Oct 31, 2022Brass Contributor
How to combined query with same table.
Hi Guys, I am adding new column in CommonSecurity Table. But i am having issue in kql quey. Please help me. This is Palo alto related logs. As "cat" field is in both Threat and System. So it is g...
akshay250692
Oct 31, 2022Brass Contributor
not working as expected
Clive_Watson
Oct 31, 2022Bronze Contributor
akshay250692 in what way, please explain?
- SocInABoxOct 31, 2022Iron Contributor
works for me, unless akshay was expecting another result.
(I don't have system logs coming in so an empty column is expected)
- akshay250692Oct 31, 2022Brass Contributorclive define for particular
| where AdditionalExtensions contains "cat="
that is not my requirement.- Clive_WatsonOct 31, 2022Bronze ContributorJust remove that line, it was there just to filter the records down in my testing, line 6 you may not want either. This was merely to show you the iif/iff command in use
- akshay250692Oct 31, 2022Brass ContributorCommonSecurityLog
| where Activity in ("TRAFFIC", "THREAT")
| extend SessionEndReason_CF = extract('reason=([^;]+)',1, AdditionalExtensions)
| extend ThreatContentName_CF = extract('cat=([^;]+)',1, AdditionalExtensions)
| extend thr_category_CF = extract('PanOSThreatCategory=([^;]+)',1, AdditionalExtensions)
up to here i m good.
now in same table "commonsecuritylog" there is another activity called "system" in which also "cat" field as already same "cat " field in above query for activity "threat". if i m applying query then it is overlapping system "cat" with threat "cat". so i want to separate column for both "cat" field. so that overlapping will not happen.
i want merge above query with below query
| whrer activity in ("SYSTEM")
| extend EventID_CF = extract('cat=([^;]+)',1, AdditionalExtensions)
is it possible ?