|
2 | 2 |
|
3 | 3 | The `azure_log_analytics_input` operator reads Azure Log Analytics logs from Azure Event Hub using.
|
4 | 4 |
|
5 |
| -The `azure_log_analytics_input` operator will use the `timegenerated` field as the parsed entry's timestamp. The label `azure_log_analytics_type` is derived from the log's `type` field. All other fields are added to the entry's record. |
| 5 | +The `azure_log_analytics_input` operator will use the `timegenerated` field as the parsed entry's timestamp. The label `azure_log_analytics_table` is derived from the log's `type` field. |
6 | 6 |
|
7 | 7 | ## Prerequisites
|
8 | 8 |
|
@@ -42,28 +42,27 @@ A list of potential fields for each Azure Log Analytics table can be found [here
|
42 | 42 |
|
43 | 43 | ```json
|
44 | 44 | {
|
45 |
| - "timestamp": "2021-04-26T18:19:31.358Z", |
| 45 | + "timestamp": "2021-05-07T14:01:26.105Z", |
46 | 46 | "severity": 0,
|
47 |
| - "labels": { |
48 |
| - "azure_log_analytics_type": "ContainerLog", |
49 |
| - }, |
50 | 47 | "record": {
|
51 |
| - "_internal_workspaceresourceid": "/subscriptions/09373b6b-bc8b-4093-925d-eb87334c7d56/resourcegroups/bindplane-integration/providers/microsoft.operationalinsights/workspaces/bp-integration1", |
52 |
| - "_resourceid": "/subscriptions/09373b6b-bc8b-4093-925d-eb87334c7d56/resourceGroups/devops/providers/Microsoft.ContainerService/managedClusters/log-analytics", |
53 |
| - "computer": "aks-agentpool-39365618-vmss000001", |
54 |
| - "containerid": "93f4537223ae81d1c39e12e684de25c65207549d1003d153356055a6137f82b0", |
55 |
| - "logentry": "[SpanData(name='Recv.grpc.health.v1.Health.Check', context=SpanContext(trace_id=9d186b35325a4a9093242435948ada22, span_id=None, trace_options=TraceOptions(enabled=True), tracestate=None), span_id='bc4877b54bc8407b', parent_span_id=None, attributes={'component': 'grpc'}, start_time='2021-04-26T18:19:31.358155Z', end_time='2021-04-26T18:19:31.358229Z', child_span_count=0, stack_trace=None, time_events=[<opencensus.trace.time_event.TimeEvent object at 0x7f5d9fc53190>, <opencensus.trace.time_event.TimeEvent object at 0x7f5d9fc537d0>], links=[], status=None, same_process_as_parent_span=None, span_kind=1)]", |
56 |
| - "logentrysource": "stdout", |
57 |
| - "mg": "00000000-0000-0000-0000-000000000002", |
58 |
| - "sourcesystem": "Containers", |
59 |
| - "system_properties": { |
60 |
| - "x-opt-enqueued-time": "2021-04-26T18:19:50.361Z", |
61 |
| - "x-opt-offset": 14480072, |
62 |
| - "x-opt-sequence-number": 1548 |
| 48 | + "containerlog": { |
| 49 | + "_internal_workspaceresourceid": "/subscriptions/000-000/resourcegroups/integration/providers/microsoft.operationalinsights/workspaces/stanza", |
| 50 | + "_resourceid": "/subscriptions/0000-000/resourceGroups/devops/providers/Microsoft.ContainerService/managedClusters/log-analytics", |
| 51 | + "computer": "aks-agentpool-39365618-vmss000001", |
| 52 | + "containerid": "f5376c6972ac19630113736e7d3bf359fe67065fde3831b0502cfee33470e68f", |
| 53 | + "logentry": "request to api failed" |
| 54 | + "logentrysource": "stdout", |
| 55 | + "mg": "00000000-0000-0000-0000-000000000002", |
| 56 | + "sourcesystem": "Containers", |
| 57 | + "tenantid": "ae0db88b-40bb-40b7-b056-57980214436c", |
| 58 | + "timegenerated": "2021-05-07T14:01:26.1050000Z", |
| 59 | + "timeofcommand": "2021-05-07T14:01:29.0000000Z" |
63 | 60 | },
|
64 |
| - "tenantid": "ae0db88b-40bb-40b7-b056-57980214436c", |
65 |
| - "timegenerated": "2021-04-26T18:19:31.3580000Z", |
66 |
| - "timeofcommand": "2021-04-26T18:19:44.0000000Z" |
| 61 | + "system_properties": { |
| 62 | + "x-opt-enqueued-time": "2021-05-07T14:01:37.789Z", |
| 63 | + "x-opt-offset": 150347296000, |
| 64 | + "x-opt-sequence-number": 125576 |
| 65 | + } |
67 | 66 | }
|
68 | 67 | }
|
69 |
| -``` |
| 68 | +``` |
0 commit comments