Hey @GaetanVP I tried this same query using makeresult as suggested by @yuanliu , and it worked perfectly fine, I am not quite sure why it is not working with my production raw data. due to some security reasons I may not be able to provide you raw data screenshot but it looks something like this {
"severity": "INFO",
"time": "2023-07-09 18:53:53.930",
"Stats": {
"discrepancy" : 10
},
"discrepancyDetails": {
"record1/0": "#DEL",
"record2/1": "#DEL",
"record3": "expected => actual",
}
} I want all unique discrepancyDetails and its count, anyway, I was able to get it through this query index="demo1" sourcetype="demo2"
| search discrepancyDetails AND Stats
| spath "Stats.discrepancy"
| search "Stats.discrepancy" > 0
| stats count(discrepancyDetails.*) as discrepancyDetails.*
| transpose I have some follow up queries on this. I may create a new thread for the same. Thanks for your prompt response, really appreciated!
... View more