Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logs: networkInfoEnabled vs geo-ip information #1403

Closed
akovalov opened this issue Aug 1, 2023 · 2 comments
Closed

Logs: networkInfoEnabled vs geo-ip information #1403

akovalov opened this issue Aug 1, 2023 · 2 comments
Assignees
Labels
question Further information is requested

Comments

@akovalov
Copy link

akovalov commented Aug 1, 2023

The thing

DatadogLogs v2.0.0

The networkInfoEnabled is false by default in the Logger.Configuration but looks like new logs still have the geo information and IP address. Is there something needed to be disabled in the dashboard as well?

Logs.enable(in: core)
let loggerConfiguration = DatadogLogs.Logger.Configuration(name: loggerName)
logger = DatadogLogs.Logger.create(with: loggerConfiguration, in: core)
@ncreated ncreated self-assigned this Aug 1, 2023
@ncreated
Copy link
Collaborator

ncreated commented Aug 1, 2023

Hello @akovalov 👋. Thanks for using 2.0.0 🙂!

The networkInfoEnabled flag is not about IP information - such we don't collect in the SDK. Instead, network info brings additional context about the internet connection, mainly these attributes. Similar ask here: #663

The geo-ip information gets extracted from device IP at events ingestion. For logs it is done by GeoIP parser installed with default "iOS logs" pipeline (see Logs > Configuration > Pipelines). To remove or anonymise IPs from ingested logs, please follow this advice in our Browser SDK repo: DataDog/browser-sdk#322 (comment) to clone or create another pipeline that is run after "iOS logs".

For anyone looking at IP anonymisation in RUM: please look here.

@akovalov Let us know if this works for you.

@ncreated ncreated changed the title Logs have geo data when networkInfoEnabled is false Logs: networkInfoEnabled vs geo-ip information Aug 1, 2023
@ncreated ncreated added the question Further information is requested label Aug 1, 2023
@akovalov
Copy link
Author

akovalov commented Aug 1, 2023

Thank you @ncreated for a quick reply. Yes, it answers the question. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants