Parsing field on conf file

Hi Mate,
Could you please suggest me how do i parse my field (i.e age) which has value as [0-10)[10-20)....While parsing my fields how do i do in my conf file ?(by default logstash takes every field as string ).

Thanks in advance,
Jagan

It's not clear what you want to accomplish. You have a string field containing an age, right? So what do you want to do with it? Convert it to an integer? Something else?

Thanks magnus,
sorry for late response,yes,what you said is correct my dataset says age has a group [0-10],[10-20] which would be shown as string in ES.
I have one question is do i need to convert to integer or any other datatype?

Thanks,
jagan

sorry for late response,yes,what you said is correct my dataset says age has a group [0-10],[10-20] which would be shown as string in ES.

It's not clear exactly what "has a group [0-10],[10-20]" means.

I have one question is do i need to convert to integer or any other datatype?

Not necessarily, but if the string field always contains an integer I don't see a reason not to convert it to an integer field.

Thank magnus,
the age field is left as default it is not causing any issue .Thanks for the clarification

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.