# Error restoring state from URL - Kibana Dashboard

**URL:** <https://discuss.elastic.co/t/error-restoring-state-from-url-kibana-dashboard/343281>\
**Category:** Kibana\
**Created:** [September 18, 2023, 5:01pm UTC](https://discuss.elastic.co/t/error-restoring-state-from-url-kibana-dashboard/343281 "2023-09-18T17:01:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kumar\_Abhinav](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kumar_abhinav/32/122208_2.png) [@Kumar\_Abhinav](https://discuss.elastic.co/u/Kumar_Abhinav)\
**Post date:** [September 18, 2023, 5:01pm UTC](https://discuss.elastic.co/t/error-restoring-state-from-url-kibana-dashboard/343281/1 "2023-09-18T17:01:08Z")

</div>

Hello Elastic community,

I am currently facing an issue with constructing a URL for Kibana dashboards with specific filters based on a given parameter. The objective is to filter the dashboard based on the user login area. To give more insight, I have created a dashboard for admin purposes and I also want this dashboard shall be used by the dispenser or distributor in all parts of the country, so the primary aspect of this dashboard shall be that based on the session id of the UI (I have embedded it in the existing UI as a separate tab) , the data should get filter.

For the trial purpose, I have hardcoded the URL with a specific id for the EventSenderCustodianid with a number present in my index. I got this sample URL from the elastic community old message

I have visuals in my dashboard with two different index. From the Event Index , i want to use EventSernderCustodianID & EventReceiverCustodianID and from the Item Index, i want to use ItemLastSenderCustodianID and ItemLastReceiverCustodianID.

I have constructed the URL as follows:

URL:  
[https://sample.net/kibana/app/dashboards#/view/b4b1d080-485b-11ee-84fa-49cb5bc4ded3?embed=true&\_g=(filters:!((query:(match\_phrase:(eventSenderCustodianId:"0810009420415")](https://sample.net/kibana/app/dashboards#/view/b4b1d080-485b-11ee-84fa-49cb5bc4ded3?embed=true&_g=(filters:!((query:(match_phrase:(eventSenderCustodianId:%220810009420415%22))))),refreshInterval:(pause:!t,value:0),time:(from:now-1y,to:now),viewMode:view)&show-time-filter=true

However, even though the URL does not throw any errors, the dashboard does not get filtered based on the specified eventSenderCustodianId.

I would greatly appreciate any insights or guidance on how to construct the URL correctly to achieve the desired filtering based on eventSenderCustodianId.

Thank you for your assistance!

Best regards,  
Kumar Abhinav

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/a/6/a6389f3d4eb08139ddf5e91535b4bf3204d4b4a9.png)

---

<div class="post-metadata">

**Author:** ![Kumar\_Abhinav](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kumar_abhinav/32/122208_2.png) [@Kumar\_Abhinav](https://discuss.elastic.co/u/Kumar_Abhinav)\
**Post date:** [September 19, 2023, 9:04pm UTC](https://discuss.elastic.co/t/error-restoring-state-from-url-kibana-dashboard/343281/3 "2023-09-19T21:04:30Z")

</div>

I have this script. This URL is working on a single KEY. I want to filter the dashboard on multiple Keys (4 to be exact). How should I do it?

1. :itemLastEventSenderCustodianId 2. :itemLastEventReceiverCustodianId 3: EventSenderCustodianId 4: EventReceiverCustoianId

[https://sample.net/kibana/app/dashboards#/view/b4b1d080-485b-11ee-84fa-49cb5bc4ded3?embed=true&\_g=(filters:!(('$state':(store:globalState),meta:(alias:!n,disabled:!f,index:b4b1d080-485b-11ee-84fa-49cb5bc4ded3,key:itemLastEventSenderCustodianId,negate:!f,params:(query:'5000456000260'),type:phrase](https://sample.net/kibana/app/dashboards#/view/b4b1d080-485b-11ee-84fa-49cb5bc4ded3?embed=true&_g=(filters:!(('$state':(store:globalState),meta:(alias:!n,disabled:!f,index:b4b1d080-485b-11ee-84fa-49cb5bc4ded3,key:itemLastEventSenderCustodianId,negate:!f,params:(query:'5000456000260'),type:phrase)),query:(match\_phrase:(itemLastEventSenderCustodianId:(query:'5000456000260'))))),time:(from:now-30d,to:now),viewMode:view)&debug=true&show-time-filter=true)

Someone, Please help me with this.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/c/a/caca47b1e1227a06df2d97ae8314ecd0f6353ce9.png)

---

<div class="post-metadata">

**Author:** ![Kumar\_Abhinav](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kumar_abhinav/32/122208_2.png) [@Kumar\_Abhinav](https://discuss.elastic.co/u/Kumar_Abhinav)\
**Post date:** [September 21, 2023, 5:53am UTC](https://discuss.elastic.co/t/error-restoring-state-from-url-kibana-dashboard/343281/4 "2023-09-21T05:53:54Z")

</div>

Hello Gurus,

I am a starter in Kibana. Someone, please help me with this.

Thanks

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 19, 2023, 5:54am UTC](https://discuss.elastic.co/t/error-restoring-state-from-url-kibana-dashboard/343281/5 "2023-10-19T05:54:50Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
