How to get the io.rancher.stack.name in kibana or logstash?

Hi ,


Apart from these fields I also want additional fields like
io.rancher.stack.name
io.rancher.container.uuid
io.rancher.stack_service.name

This is how my parsed json looks like
{
“_index”: “logstash-2016.01.13”,
“_type”: “docker_logs”,
“_id”: “AVI7-0nmIOnworDEPZOP”,
“_score”: null,
“_source”: {
“message”: "10.42.27.0 - - [13/Jan/2016:17:14:30 +0000] “POST /elasticsearch/.kibana/index-pattern/logstash-* HTTP/1.1” 200 93 “http://192.168.99.101:9090/” “Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36” “192.168.99.1"”,
“docker.name”: “/3575c482-7dc1-41d9-a54d-308926a7bf81”,
“docker.id”: “386ab4a90652dc4fd0f98b591cbf743cc2d8a2c5b0b0c70970914c4498371177”,
“docker.image”: “rancher/nginx:v1.9.4-3”,
“docker.hostname”: “minerva-elk-kibana_nginx-proxy_1”,
@version”: “1”,
@timestamp”: “2016-01-13T17:14:30.242Z”,
“type”: “docker_logs”,
“host”: “10.42.91.191”
},
“fields”: {
@timestamp”: [
1452705270242
]
},
“sort”: [
1452705270242
]
}

What changes i have to make for rancher-compose.yml file for logstash to get these additional fields