#support

Getting Country Information from IP in Signoz

TLDR Syed asked for operator in Signoz to get country info from IP. nitya-signoz stated it's not available in OpenTelemetry but suggested using Fluentd to forward data to Signoz.

Powered by Struct AI

1

10
7mo
Solved
Join the chat
Apr 27, 2023 (7 months ago)
Syed
Photo of md5-f16c6ead78bebb6489e7ed7b121f5ce9
Syed
10:48 AM
Hi Team,
Ankit 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?
nitya-signoz
Photo of md5-a52b9d6c34f193d9a1ff940024f36f77
nitya-signoz
10:58 AM
As of now, opentelemtry doesn’t have support for something like this.
Syed
Photo of md5-f16c6ead78bebb6489e7ed7b121f5ce9
Syed
10:58 AM
oh ok thanks a lot šŸ‘

1

Ankit
Photo of md5-dbe7088320fe1d922707613e02f3420d
Ankit
11:00 AM
nitya-signoz can't they still use fluentd to get those data and feed to signoz?
Syed
Photo of md5-f16c6ead78bebb6489e7ed7b121f5ce9
Syed
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
nitya-signoz
Photo of md5-a52b9d6c34f193d9a1ff940024f36f77
nitya-signoz
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/
Syed
Photo of md5-f16c6ead78bebb6489e7ed7b121f5ce9
Syed
11:05 AM
ok perfect, I will change the flow and let you know, thank you once again
11:06
Syed
11:06 AM
but I tried logstash, all the fields get messed up. That was because I did not transform?
nitya-signoz
Photo of md5-a52b9d6c34f193d9a1ff940024f36f77
nitya-signoz
11:07 AM
Yeah, you will have to take care of transformation logic in your receiver.
Syed
Photo of md5-f16c6ead78bebb6489e7ed7b121f5ce9
Syed
11:08 AM
ok I will try again and ping youšŸ™‚

SigNoz Community

Built with ClickHouse as datastore, SigNoz is an open-source APM to help you find issues in your deployed applications & solve them quickly | Knowledge Base powered by Struct.AI

Indexed 1023 threads (61% resolved)

Join Our Community