Hi Siddhartha,

using the to_long() function is the correct way. Additionally, you can 
create a custom Elasticsearch index mapping and specify these fields as 
numeric, 
see 
http://docs.graylog.org/en/2.1/pages/configuration/elasticsearch.html#custom-index-mappings
 
for details.

Cheers,
Jochen

On Wednesday, 14 December 2016 02:33:45 UTC+1, Siddhartha Kattoju wrote:
>
> Hi All,
>
> I am extracting some numbers from logs and adding them as fields using the 
> pipeline feature. I have a rule set up that matches logs coming from 
> haproxy and extract things like response times, request size etc. Is there 
> a way to specify the field type as numeric ? I tried to do 
> set_field("name_of_field",to_long("regex_capture")), however when i try to 
> generate a chart I get an error saying that can only be used on numeric 
> fields.
>
> Any help with this will be much appreciated. Please let me know if any 
> additional information would help.
>
> BR/Sid.
>

-- 
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/6b8cb1d0-2c63-4e58-bafa-b26b4e0f6b51%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to