# Import Index Pattern "Source filters"

**URL:** <https://discuss.elastic.co/t/import-index-pattern-source-filters/160665>\
**Category:** Kibana\
**Created:** [December 13, 2018, 4:46am UTC](https://discuss.elastic.co/t/import-index-pattern-source-filters/160665 "2018-12-13T04:46:04Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kenneth\_M\_Kolano](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kenneth_m_kolano/32/38752_2.png) [@Kenneth\_M\_Kolano](https://discuss.elastic.co/u/Kenneth_M_Kolano)\
**Post date:** [December 13, 2018, 4:46am UTC](https://discuss.elastic.co/t/import-index-pattern-source-filters/160665/1 "2018-12-13T04:46:04Z")

</div>

I'm trying to work out how to import terms into Kibana's Management / Index Patterns / Source filters pane. That pane [doesn't seem to be documented](https://www.elastic.co/guide/en/kibana/master/index-patterns.html), and searches are filled with the related filtering of individual queries, rather than across the Kibana UI.

I'm hoping for something with the Kibana REST API, but presume something more direct via the ES API may be needed.

---

<div class="post-metadata">

**Author:** ![Kenneth\_M\_Kolano](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kenneth_m_kolano/32/38752_2.png) [@Kenneth\_M\_Kolano](https://discuss.elastic.co/u/Kenneth_M_Kolano)\
**Post date:** [December 13, 2018, 5:33am UTC](https://discuss.elastic.co/t/import-index-pattern-source-filters/160665/2 "2018-12-13T05:33:20Z")

</div>

[http://localhost:5601/kibana/api/saved\_objects/index-pattern/](http://localhost:5601/kibana/api/saved_objects/index-pattern/)

---

<div class="post-metadata">

**Author:** ![bhavyarm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhavyarm/32/22392_2.png) [@bhavyarm](https://discuss.elastic.co/u/bhavyarm)\
**Post date:** [December 19, 2018, 9:38pm UTC](https://discuss.elastic.co/t/import-index-pattern-source-filters/160665/3 "2018-12-19T21:38:35Z")

</div>

Hello,

Am not sure what are you asking here? what does terms mean here?

> [@Kenneth\_M\_Kolano](#):
>
> how to import terms into Kibana's Management / Index Patterns / Source filters pane.

Also did you look at saved objects UI and export/import? Does that help?

 ![saved%20objects](https://us1.discourse-cdn.com/elastic/original/3X/2/8/286603c4599cc77d8b9a0820e0abd0a873beb203.png)

Thanks,  
Bhavya

---

<div class="post-metadata">

**Author:** ![Kenneth\_M\_Kolano](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kenneth_m_kolano/32/38752_2.png) [@Kenneth\_M\_Kolano](https://discuss.elastic.co/u/Kenneth_M_Kolano)\
**Post date:** [December 19, 2018, 10:05pm UTC](https://discuss.elastic.co/t/import-index-pattern-source-filters/160665/4 "2018-12-19T22:05:43Z")

</div>

Yes, I already had resolved this myself, I had forgotten the Index Pattern is one of the saved objects. Here's the more complete curl command...

```
curl -s -X POST http://localhost:5601/kibana/api/saved_objects/index-pattern/logstash-* -H 'Content-Type: application/json' -H 'kbn-xsrf: anything' -d '{
	"attributes":{
		"title":"logstash-*",
		"timeFieldName":"@timestamp"
		"sourceFilters": "[{\"value\":\"path\"},{\"value\":\"@version\"}]"
	}
}'
```

---

<div class="post-metadata">

**Author:** ![bhavyarm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhavyarm/32/22392_2.png) [@bhavyarm](https://discuss.elastic.co/u/bhavyarm)\
**Post date:** [December 19, 2018, 10:10pm UTC](https://discuss.elastic.co/t/import-index-pattern-source-filters/160665/5 "2018-12-19T22:10:01Z")

</div>

Awesome.

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:** [January 16, 2019, 10:10pm UTC](https://discuss.elastic.co/t/import-index-pattern-source-filters/160665/6 "2019-01-16T22:10:10Z")

</div>

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