Kibana 6.6, visualisation is visible on "visualisations" page, however can't be opened.
Not visible in management section, i.e not seen as saved object.
saved search works fine - I verified that.
data "kibana_index" "logstash-mysite-nginx" {
filter = {
name = "logstash-mysite-nginx"
values = ["logstash-mysite-nginx*"]
}
}
resource "kibana_search" "logstash-mysite-nginx-all" {
name = "logstash-mysite-nginx-all"
description = "all data from index"
display_columns = ["_source"]
sort_by_columns = ["@timestamp"]
visualization_state = <<EOF
{"title":"mysite-http-codes","type":"area","params":{"type":"area","grid":{"categoryLines":false,"style":{"color":"#eee"}},"categoryAxes":[{"id":"CategoryAxis-1","type":"category","position":"bottom","show":true,"style":{},"scale":{"type":"linear"},"labels":{"show":true,"truncate":100},"title":{}}],"valueAxes":[{"id":"ValueAxis-1","name":"LeftAxis-1","type":"value","position":"left","show":true,"style":{},"scale":{"type":"linear","mode":"normal"},"labels":{"show":true,"rotate":0,"filter":false,"truncate":100},"title":{"text":"Count"}}],"seriesParams":[{"show":"true","type":"area","mode":"stacked","data":{"label":"Count","id":"1"},"drawLinesBetweenPoints":true,"showCircles":true,"interpolate":"cardinal","valueAxis":"ValueAxis-1"}],"addTooltip":true,"addLegend":true,"legendPosition":"right","times":[],"addTimeMarker":false},"aggs":[{"id":"1","enabled":true,"type":"count","schema":"metric","params":{}},{"id":"2","enabled":true,"type":"date_histogram","schema":"segment","params":{"field":"@timestamp","timeRange":{"from":"now-15m","to":"now","mode":"quick"},"useNormalizedEsInterval":true,"interval":"auto","time_zone":"Europe/Helsinki","drop_partials":false,"customInterval":"2h","min_doc_count":1,"extended_bounds":{}}},{"id":"3","enabled":true,"type":"terms","schema":"group","params":{"field":"response.keyword","size":20,"order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","missingBucket":false,"missingBucketLabel":"Missing"}}]}
EOF
}
`
let me know please if any more info required. but 99.99% this is version problem - I successfully use your provider with other installation that runs older kibana, and my code is basically same.
Hello,
Kibana 6.6, visualisation is visible on "visualisations" page, however can't be opened. Not visible in management section, i.e not seen as saved object. saved search works fine - I verified that.
`provider "kibana" { version = "~> 0.6.2" kibana_version = "6.6.0" kibana_uri = "http://kibana.mydomain.com"
}
data "kibana_index" "logstash-mysite-nginx" { filter = { name = "logstash-mysite-nginx" values = ["logstash-mysite-nginx*"] } }
resource "kibana_search" "logstash-mysite-nginx-all" { name = "logstash-mysite-nginx-all" description = "all data from index" display_columns = ["_source"] sort_by_columns = ["@timestamp"]
search = { index = "${data.kibana_index.logstash-mysite-nginx.id}" filters = [] } }
resource "kibana_visualization" "logstash-mysite-nginx-test-tf" { name = "logstash-mysite-nginx-TF-test" description = "logstash-mysite-nginx-TF-test" saved_search_id = "${kibana_search.logstash-mysite-nginx-all.id}"
visualization_state = <<EOF {"title":"mysite-http-codes","type":"area","params":{"type":"area","grid":{"categoryLines":false,"style":{"color":"#eee"}},"categoryAxes":[{"id":"CategoryAxis-1","type":"category","position":"bottom","show":true,"style":{},"scale":{"type":"linear"},"labels":{"show":true,"truncate":100},"title":{}}],"valueAxes":[{"id":"ValueAxis-1","name":"LeftAxis-1","type":"value","position":"left","show":true,"style":{},"scale":{"type":"linear","mode":"normal"},"labels":{"show":true,"rotate":0,"filter":false,"truncate":100},"title":{"text":"Count"}}],"seriesParams":[{"show":"true","type":"area","mode":"stacked","data":{"label":"Count","id":"1"},"drawLinesBetweenPoints":true,"showCircles":true,"interpolate":"cardinal","valueAxis":"ValueAxis-1"}],"addTooltip":true,"addLegend":true,"legendPosition":"right","times":[],"addTimeMarker":false},"aggs":[{"id":"1","enabled":true,"type":"count","schema":"metric","params":{}},{"id":"2","enabled":true,"type":"date_histogram","schema":"segment","params":{"field":"@timestamp","timeRange":{"from":"now-15m","to":"now","mode":"quick"},"useNormalizedEsInterval":true,"interval":"auto","time_zone":"Europe/Helsinki","drop_partials":false,"customInterval":"2h","min_doc_count":1,"extended_bounds":{}}},{"id":"3","enabled":true,"type":"terms","schema":"group","params":{"field":"response.keyword","size":20,"order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","missingBucket":false,"missingBucketLabel":"Missing"}}]} EOF } ` let me know please if any more info required. but 99.99% this is version problem - I successfully use your provider with other installation that runs older kibana, and my code is basically same.