I am new to dashboarding drop downs and I'd like to create a drop down for each slice of the pie. I have created a search as a pie chart and tried to add a drop down that will search for only the slice I have selected. So far it's not going anywhere. This is what I have:
Hi @NanSplk01
Instead of setting a token on click you can link to search, you can either do this in the UI and then specify your value using $row.<fieldName>.value$ (such as $row.ERROR.value$) or you can edit the JSON with something like this:
"eventHandlers": [
{
"type": "drilldown.linkToSearch",
"options": {
"query": "index=_internal sourcetype=$row.sourcetype.value$ | stats count by sourcetype",
"earliest": "auto",
"latest": "auto",
"type": "custom",
"newTab": false
}
}
],In my example Im clicking on a piechart which has a "stats count by sourcetype" hence I am using $row.sourcetype.value$ in my drilldown search, does that make sense?
🌟 Did this answer help you? If so, please consider:
Your feedback encourages the volunteers in this community to continue contributing
This worked perfectly.
Hi @NanSplk01
Instead of setting a token on click you can link to search, you can either do this in the UI and then specify your value using $row.<fieldName>.value$ (such as $row.ERROR.value$) or you can edit the JSON with something like this:
"eventHandlers": [
{
"type": "drilldown.linkToSearch",
"options": {
"query": "index=_internal sourcetype=$row.sourcetype.value$ | stats count by sourcetype",
"earliest": "auto",
"latest": "auto",
"type": "custom",
"newTab": false
}
}
],In my example Im clicking on a piechart which has a "stats count by sourcetype" hence I am using $row.sourcetype.value$ in my drilldown search, does that make sense?
🌟 Did this answer help you? If so, please consider:
Your feedback encourages the volunteers in this community to continue contributing