Integrating ElasticSearch with Grafana

Hello
I am not sure whether i can ask this here. Just trying my luck here.
I am integrating Grafana with ElasticSearch. In the Grafana screen, i need to give the ElasticSearch details.
What is the value for Index?

This is what is in my logstash config

 if "_grokparsefailure" in [tags] {
 elasticsearch {
   hosts => "84.210.206.233:9200"
   #protocol => "http"
   #port => 9200
   #cluster => "elk_cluster"
   index => "cmdc2-error-%{cmdcLogId}"
   document_type => "error_logs"
   codec => "json"
 }
} else {
 elasticsearch {
   hosts => "84.210.206.233:9200"
   #protocol => "http"
   #port => 9200
   #cluster => "elk_cluster"
   index => "cmdc2-log-%{+YYYY.MM.dd}"
   document_type => "%{target}_logs"
   codec => "json"
 }
}
}

Should i give the value cmdc2-log-%{+YYYY.MM.dd} as index in Grafana page?

index => “cmdc2-error-%{cmdcLogId}”

So specify cmdc2-error-* (and no date pattern in grafana)

index => “cmdc2-log-%{+YYYY.MM.dd}”

Soecfy daily pattern in grafana and cmdc2-log-YYYY.MM.dd

Thanks. I fixed it. I removed the date pattern and i can see data flowing in.