[graylog2] Re: Using kopf plugin to change *_geolocation fields type to geo_point

2016-09-15 Thread Jochen Schalanda
Hi Aykisn,

On Thursday, 15 September 2016 07:56:05 UTC+2, Aykisn wrote:
>
> I edited the graylog-internal template to add the geolocation fields to 
> convert tem to geo_point.
>

Graylog will check and overwrite its internal template (graylog-internal), 
so changing this will have no effect at all.

You can create a custom index template with a higher priority, though: 
http://docs.graylog.org/en/2.1/pages/configuration/elasticsearch.html#custom-index-mappings
 

I also tried to do a sepate template to add the geolocation part but that 
> didn't work either. Also tried without the wildcard and by specifying the 
> exact name of a field, didn't work either.
>

Yes, that's to be expected, because Graylog expects the *_geolocation 
fields to be strings and not geo_point. The latter is currently not 
supported by the GeoIP/Map Widget 
plugin: https://github.com/Graylog2/graylog-plugin-map-widget/issues/7
 

Any insights on how I can use the template to correctly change all the 
> _geolocation fields to geo_point ?
>

It's not possible right now. Feel free to subscribe to 
https://github.com/Graylog2/graylog-plugin-map-widget/issues/7 to stay 
updated on the issue.


Cheers,
Jochen

>

-- 
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 graylog2+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/graylog2/66a74d13-0564-4548-96dc-5391568a3370%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[graylog2] Re: Using kopf plugin to change *_geolocation fields type to geo_point

2016-09-15 Thread Aykisn
I have managed to convert one field at a time by creating a nex template 
like this :
{
  "order": 0,
  "template": "graylog_*",
  "settings": {},
  "mappings": {
"message": {
  "properties": {
"*_geolocation": {
  "type": "geo_point"
}
  }
}
  },
  "aliases": {}
}

Problem is that it would be really unpractical to have to add a specific 
name in the template and cycle an index each time we would have a new 
geolocation field.

-- 
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 graylog2+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/graylog2/7d601b5f-605c-4035-859c-9c380df91cf6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.