# Filtering on pdf reports

**URL:** https://discuss.elastic.co/t/filtering-on-pdf-reports/329955
**Category:** Kibana
**Tags:** elastic-stack-reporting
**Created:** [April 14, 2023, 12:39am UTC](https://discuss.elastic.co/t/filtering-on-pdf-reports/329955 "2023-04-14T00:39:34Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![ElasticLiver](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/elasticliver/32/64869_2.png) [@ElasticLiver](https://discuss.elastic.co/u/ElasticLiver)
#### Post date: [April 14, 2023, 12:39am UTC](https://discuss.elastic.co/t/filtering-on-pdf-reports/329955/1 "2023-04-14T00:39:34Z")

</div>

Hi, when in a dashboard I select share -\> pdf reports - post url to create a report, i get this url:  
`/api/reporting/generate/printablePdfV2?jobParams=(browserTimezone:America/Santiago,layout:(dimensions:(height:1463.984375,width:1692.5),id:preserve_layout),locatorParams:!((id:DASHBOARD_APP_LOCATOR,params:(dashboardId:bb9342a0-d32e-11ed-a3c7-f3cc8fbb9ac2,preserveSavedFilters:!t,timeRange:(from:now-30d,to:now),useHash:!f,viewMode:view),version:'7.17.5')),objectType:dashboard,title:'Anomalias dashboards',version:'7.17.5')`

how can I modify this url to add a filter like:

`hostname.keyword:my-hostname`

so I get only the data of my-hostname in the report.

Thanks.

---

<div class="post-metadata">

### Author: ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)
#### Post date: [April 15, 2023, 1:39am UTC](https://discuss.elastic.co/t/filtering-on-pdf-reports/329955/2 "2023-04-15T01:39:06Z")

</div>

If you save the filter with the dashboard it will be preserved in the report. Is that not an option?

---

<div class="post-metadata">

### Author: ![ElasticLiver](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/elasticliver/32/64869_2.png) [@ElasticLiver](https://discuss.elastic.co/u/ElasticLiver)
#### Post date: [April 28, 2023, 2:19pm UTC](https://discuss.elastic.co/t/filtering-on-pdf-reports/329955/3 "2023-04-28T14:19:02Z")

</div>

Hi, no the filter its not saved like in older versions, but just managed to add a query in rison, after viewMode:view

`,filters:!((meta:(alias:null,disabled:!f,key:<field>,negate:!f,params:(query:<value>),type:phrase),query:(match_phrase:(<field>:<value>))))`

---

<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: [May 26, 2023, 2:19pm UTC](https://discuss.elastic.co/t/filtering-on-pdf-reports/329955/4 "2023-05-26T14:19:25Z")

</div>

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