Import Index Pattern "Source filters"

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, 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.

http://localhost:5601/kibana/api/saved_objects/index-pattern/

Hello,

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

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

Thanks,
Bhavya

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\"}]"
	}
}'
1 Like

Awesome.

Thanks!

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