title: Set a Kibana dashboard filter through the url
body: <p>I created a Kibana dashboard, containing some visualization. I can successfully embed the dashboard using the provided url:</p>
  
  <pre><code>{url}/app/kibana#/dashboard/{dashboard_uuid}?embed=true&amp;_g=(refreshInterval:(display:Off,pause:!f,value:0),time:(from:now-1y,mode:quick,to:now))
  </code></pre>
  
  <p>Now, I would like to have any user of my app to see this dashboard, filtered in order to only see their data. The filter query that I need is very simple, because all the data contains a field <code>user_id</code>.</p>
  
  <p>An example: For the user with identifier <code>$id</code>, I want to load the dashboard with the filter <code>user_id:$id</code></p>
  
  <p>In there a way to set the filter through the url? I see there are some parameters already (<code>refreshInterval</code>, <code>time</code>..) but I couldn't find the proper documentation. Any ideas?</p>
  
  <p>Using Kibana <code>6.2.2</code> and ElasticSearch <code>6.6.0</code></p>
  
  <p>I tried setting the filters through the <code>_a</code> parameter, as explained here: <a href="https://discuss.elastic.co/t/dashboard-search-parameter-via-url/84385" rel="noreferrer">https://discuss.elastic.co/t/dashboard-search-parameter-via-url/84385</a> without success.</p>
  
  <pre><code>{url}/app/kibana#/dashboard/{dashboard_uuid}?
        embed=true&amp;
        _g=(refreshInterval:(display:Off,pause:!f,value:0),time:(from:now-1y,mode:quick,to:now))&amp;
        _a=(filters:!(),query:(querystring:(query: "user_id:1")))
  </code></pre>