Azure Logs Ingestion API
Send logs to Azure Log Analytics using Logs Ingestion API
Last updated
Was this helpful?
Was this helpful?
pipeline:
inputs:
- name: tail
path: /path/to/your/sample.log
tag: sample
key: RawData
# Or use other plugins
#- name: cpu
# tag: sample
filters:
- name: modify
match: sample
# Add a json key named "Application":"fb_log"
add: Application fb_log
outputs:
# Enable this section to see your json-log format
#- name: stdout
# match: '*'
- name: azure_logs_ingestion
match: sample
client_id: XXXXXXXX-xxxx-yyyy-zzzz-xxxxyyyyzzzzxyzz
client_secret: some.secret.xxxzzz
tenant_id: XXXXXXXX-xxxx-yyyy-zzzz-xxxxyyyyzzzzxyzz
dce_url: https://log-analytics-dce-XXXX.region-code.ingest.monitor.azure.com
dcr_id: dcr-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
table_name: ladcr_CL
time_generated: true
time_key: Time
compress: true[INPUT]
Name tail
Path /path/to/your/sample.log
Tag sample
Key RawData
# Or use other plugins
#[INPUT]
# Name cpu
# Tag sample
[FILTER]
Name modify
Match sample
# Add a json key named "Application":"fb_log"
Add Application fb_log
# Enable this section to see your json-log format
#[OUTPUT]
# Name stdout
# Match *
[OUTPUT]
Name azure_logs_ingestion
Match sample
client_id XXXXXXXX-xxxx-yyyy-zzzz-xxxxyyyyzzzzxyzz
client_secret some.secret.xxxzzz
tenant_id XXXXXXXX-xxxx-yyyy-zzzz-xxxxyyyyzzzzxyzz
dce_url https://log-analytics-dce-XXXX.region-code.ingest.monitor.azure.com
dcr_id dcr-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
table_name ladcr_CL
time_generated true
time_key Time
Compress true