Hello.
I have logs which contains field "matching" which is a String type. This field contains this kind of information: [firstName, lastName, mobileNumber, town, ipAddress, dateOfBirth, emailAddress, countryCode, fullAddress, postCode, etc]. What I want to do is to compose a query that will return count of a specific search, such as [mobileNumber, countryCode] and display only the fields that contain the above words.
I tried this query:
index="source*" | where matching LIKE "%mobileNumber%" AND matchingLIKE "%countryCode%" | stats count by matching | table count matching
But the answer returns all the possible variants that also contains [mobileNumber, countryCode].
What I want is a count only for all this results
Also I want to create a table with all specific searches I do. I know how to use append, but result is like a stairs, what other solution can be used?
Than you!
... View more