Hi, 

I have created an index template, which I manually load to graylog :

curl -XPUT localhost:9200/_template/graylog_per_index -d '
{
  "template" : "graylog_*",
  "mappings" : {
    "message": {
      "properties": {
        "result" : { "type" : "string" }
      }
    }
  }
}'


But I want to somehow create a JSON file and included to the docker image, 
and run the template automatically when container is run.

In elastic search documentation states that i can create a "templates" 
directory at the config directory and add there the necessary JSON.

I tried to create the directory at: /opt/graylog/conf and added the file 
"result_template.json" but didn't manage to make it work.

The file contains:

{
  "template" : "graylog_*",
  "mappings" : {
    "message": {
      "properties": {
        "result" : { "type" : "string" }
      }
    }
  }
}

As well modified "elasticsearch.yml"  inside "/opt/graylog/conf" :

path.conf: /opt/graylog/conf


Any Ideas how to achieve that,
 Thank you. 


-- 
You received this message because you are subscribed to the Google Groups 
"Graylog Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/graylog2/9911d3b7-7a5c-4dd3-857f-d51d6ba7b55f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to