vectordotdev / vector

A high-performance observability data pipeline.
https://vector.dev
Mozilla Public License 2.0
17.79k stars 1.58k forks source link

Azure DCR-based custom logs -> Logs ingestion API #20978

Open Idriel opened 3 months ago

Idriel commented 3 months ago

A note for the community

Use Cases

Trying to send Custom Logs into Azure Log Analytics Workspace over new DCR-based rules where we have complete control over Tables.

Also to note that the Azure Monitor HTTP Data Collector API has been deprecated and will no longer be functional as of 9/14/2026. It's been replaced by the Logs ingestion API.

Attempted Solutions

Current azure_monitor_logs is working but in v1, not in new v2 of Tables and logs ingestion API.

Proposal

Please implement new Azure standard for Logs Ingestion

References

No response

Version

vector 0.39.0 (x86_64-unknown-linux-gnu 73da9bb 2024-06-17 16:00:23.791735272)

ramsharan-choudhary-bzy commented 3 months ago

I am also facing the same problem. data is not inserting into custom tables. I am using user assigned identity for authentication.

Assign the role of "Monitoring Metrics Publisher" as per the documentation to user MI. Using python sdk and create custom table with only 2 columns and trying to insert data but python app did not throwing any exception or error.

And data is also not inserting into custom table.

jlaundry commented 9 hours ago

I've started taking a look at this (it's my first time using Rust for something non-trivial, so any feedback on what I've done wrong is welcome): https://github.com/vectordotdev/vector/compare/master...jlaundry:vector:feature-azure_logs_ingestion

Still a couple things I need to do before creating a PR--docs, unit tests, integration tests, find a way to not have to wait 5 mins during each cargo build--but the basic functionality seems to work.