Hi,
> I managed to solve the issue, not the best solution but worked, by adding
> a script that created the index template at "/opt/graylog/sv/index/"
>
and when the index is created I delete all the directory, so it is not
running all the time.
Here is the script:
#!/bin/bash
if [[ `curl -XHEAD -i localhost:9200/_template/graylog_per_index 2>&1 |
grep 'HTTP/1.1 404 Not Found'` ]]; then
curl -XPUT localhost:9200/_template/graylog_per_index -d '
{
"template" : "graylog_*",
"mappings" : {
"message": {
"properties": {
"result" : { "type" : "string" }
}
}
}
}'
elif [[ `curl -XHEAD -i localhost:9200/_template/graylog_per_index 2>&1 |
grep 'HTTP/1.1 200 OK'` ]]; then
rm -rf /opt/graylog/sv/index/
fi
--
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/956b75b0-9c8f-4bee-98f7-e5d67a1c44f4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.