https://signoz.io logo
Title
s

Syed Muhammad Hassan

04/27/2023, 10:48 AM
Hi Team, @Ankit Nayan @nitya-signoz What is the operator in signoz to get country information from IP? like we are doing in fluentd
<filter nginxweblogs>
    @type    geoip
    geoip_lookup_keys  host
    <record>
    city  ${city.names.en["host"]}
        lat   ${location.latitude["host"]}
        lon   ${location.longitude["host"]}
        country ${country.iso_code["host"]}
        country_name    ${country.names.en["host"]}
      </record>
    </filter>
How can I achieve this in signoz?
n

nitya-signoz

04/27/2023, 10:58 AM
As of now, opentelemtry doesn’t have support for something like this.
s

Syed Muhammad Hassan

04/27/2023, 10:58 AM
oh ok thanks a lot 👍
a

Ankit Nayan

04/27/2023, 11:00 AM
@nitya-signoz can't they still use fluentd to get those data and feed to signoz?
s

Syed Muhammad Hassan

04/27/2023, 11:01 AM
yes that would be great. Right now we are sending fluentd to kafka, it would be great if we can send also to signoz
n

nitya-signoz

04/27/2023, 11:03 AM
Yes they use fluentd to forward the data to otel collector. You can follow this doc to forward your data from fluentd to signoz https://signoz.io/docs/userguide/fluentd_to_signoz/
s

Syed Muhammad Hassan

04/27/2023, 11:05 AM
ok perfect, I will change the flow and let you know, thank you once again
but I tried logstash, all the fields get messed up. That was because I did not transform?
n

nitya-signoz

04/27/2023, 11:07 AM
Yeah, you will have to take care of transformation logic in your receiver.
s

Syed Muhammad Hassan

04/27/2023, 11:08 AM
ok I will try again and ping you🙂