You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/data-manager-for-agri/how-to-set-up-audit-logs.md
+19-19Lines changed: 19 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ After creating a Data Manager for Agriculture service resource, navigate to diag
28
28
Now you can navigate to the destination you specified in the diagnostic setting to access logs. You can access your logging information 10 minutes (at most) after the Data Manager for Agriculture operation. In most cases, it's quicker.
29
29
30
30
>!Note
31
-
Currently, collecting logs in a Log Analytics workspace is not enabled. This feature will be made available in a future release.
31
+
Currently, collecting logs in the log analytics workspace is not enabled. This feature will be made available in a future release.
32
32
33
33
34
34
## Interpret your logs
@@ -224,7 +224,7 @@ The following table lists the **operationName** values and corresponding REST AP
Note: The operation names corresponding to write operations in other categories are present in this category. These common logs don't contain the request body. These common logs can be correlated using the correlationId field. Some of the control plane operations that aren't part of the rest of the categories are listed below.
227
+
The operation names corresponding to write operations in other categories are present in this category. These common logs don't contain the request body. These common logs can be correlated using the correlationId field. Some of the control plane operations that aren't part of the rest of the categories are listed below.
228
228
229
229
|operationName|
230
230
| --- |
@@ -235,28 +235,28 @@ Note: The operation names corresponding to write operations in other categories
235
235
|Update Subscription|
236
236
|Data Plane Authentication|
237
237
238
-
## Query resource logs in a Log Analytics workspace
238
+
## Query resource logs in a log analytics workspace
239
239
All the `categories` of resource logs are mapped as a table in log analytics. To access logs for each category, you need to create a diagnostic setting to send data to a log analytics workspace. In this workspace, you can query any of the tables listed to obtain the relevant logs.
240
240
241
-
### List of tables in Log analytics and their mapping to categories in resource logs
241
+
### List of tables in log analytics and their mapping to categories in resource logs
242
242
| Table name in log analytics| Categories in resource logs |Description
243
243
| --- | --- | --- |
244
244
|AgriFoodFarmManagementLogs|FarmManagementLogs| Logs for CRUD operations for Farmer, Farm, Field, Boundary, Seasonal Field, Crop, CropVariety, Season, Attachment, prescription maps, prescriptions, management zones, zones, plant tissue analysis and nutrient analyses.
245
-
|AgriFoodFarmOperationsLogs|FarmOperationsLogs|Logs for CRUD operations for FarmOperations data ingestion job, ApplicationData, PlantingData, HarvestingData, TillageData
246
-
|AgriFoodSatelliteLogs|SatelliteLogs| Logs for create and get operations for Satellite data ingestion job
247
-
|AgriFoodWeatherLogs|WeatherLogs|Logs for create, delete and get operations for weather data ingestion job
245
+
|AgriFoodFarmOperationsLogs|FarmOperationsLogs|Logs for CRUD operations for FarmOperations data ingestion job, ApplicationData, PlantingData, HarvestingData, TillageData.
246
+
|AgriFoodSatelliteLogs|SatelliteLogs| Logs for create and get operations for satellite data ingestion job.
247
+
|AgriFoodWeatherLogs|WeatherLogs|Logs for create, delete and get operations for weather data ingestion job.
248
248
|AgriFoodProviderAuthLogs|ProviderAuthLogs| Logs for create, update, delete, cascade delete, get and get all for oauth providers. It also has logs for get, get all, cascade delete for oauth tokens.
249
249
|AgriFoodInsightLogs|InsightLogs| Logs for get and get all operations for insights.
250
250
|AgriFoodModelInferenceLogs|ModelInferenceLogs| Logs for create and get operations for biomass model job.
251
-
|AgriFoodJobProcessedLogs|JobProcessedLogs|Logs for indicating success or failure and reason of failure for jobs. In addition to logs for resource cascade delete jobs, data-ingestion jobs, it also contains logs for farm operations and event handling jobs as well.
251
+
|AgriFoodJobProcessedLogs|JobProcessedLogs|Logs for indicating success or failure and reason of failure for jobs. In addition to logs for resource cascade delete jobs, data-ingestion jobs. It also contains logs for farm operations and event handling jobs.
252
252
|AgriFoodApplicationAuditLogs|ApplicationAuditLogs| Logs for privileged actions such as data-plane resource create, update, delete and subscription management operations. Complete list is in the operation name table below.
253
253
254
254
255
-
### List of columns in Log analytics tables
255
+
### List of columns in log analytics tables
256
256
| Field name | Description |
257
257
| --- | --- |
258
258
|**Time**|Date and time in UTC. |
259
-
|**ResourceId**|Azure Resource Manager resource ID for Data Manager for Agriculture logs.|
259
+
|**ResourceId**|Azure Resource Manager resource ID for Data Manager for Agriculture logs.|
260
260
|**OperationName**|Name of the operation, as documented in the earlier table. |
261
261
|**OperationVersion**|REST API version requested by the client. |
262
262
|**Category**|Category details in the Data Manager for Agriculture logs, this can be any value as listed in the category table. |
@@ -265,18 +265,18 @@ All the `categories` of resource logs are mapped as a table in log analytics. To
265
265
|**ResultDescription**|More description about the result, when available. |
266
266
|**DurationMs**|Time it took to service the REST API request, in milliseconds.|
267
267
|**CallerIpAddress**|IP address of the client that made the request. |
268
-
|**Level**|The severity level of the event (informational, warning, error, or critical).
268
+
|**Level**|The severity level of the event (informational, warning, error, or critical).|
269
269
|**CorrelationId**|An optional GUID that can be used to correlate logs. |
270
-
|**ApplicationId**| Application ID indicating identity of the caller.
271
-
|**ObjectId**| Object ID indicating identity of the caller.
272
-
|**ClientTenantId**| ID of the tenant of the caller.
270
+
|**ApplicationId**| Application ID indicating identity of the caller.|
271
+
|**ObjectId**| Object ID indicating identity of the caller.|
272
+
|**ClientTenantId**| ID of the tenant of the caller.|
273
273
|**SubscriptionId**| ID of the subscription used by the caller.
274
274
|**Location**|The region of the resource emitting the event such as "East US" |
275
-
|**JobRunType**| Available only in `AgriFoodJobProcessesLogs` table, indicates type of the job run. Value can be either of periodic or one time.
276
-
|**JobId**| Available in`AgriFoodJobProcessesLogs`, `AgriFoodSatelliteLogs`, `AgriFoodWeatherLogs`, and `AgriFoodModelInferenceLogs`, indicates ID of the job.
277
-
|**InitiatedBy**| Available only in `AgriFoodJobProcessesLogs` table. Indicates whether a job was initiated by a user or by the service.
278
-
|**FarmerId**| ID of the farmer associated with the operation.
279
-
|**Properties** | Available only in`AgriFoodJobProcessesLogs` table, it contains: `farmOperationEntityId` (ID of the entity that failed to be created by the farmOperation job), `farmOperationEntityType`(Type of the entity that failed to be created, can be ApplicationData, PeriodicJob, etc.), `errorCode`(Code for failure of the job at Data Manager for Agriculture end),`errorMessage`(Description of failure at the Data Manager for Agriculture end),`internalErrorCode`(Code of failure of the job provide by the provider),`internalErrorMessage`(Description of the failure provided by the provider),`providerId`(ID of the provider such as JOHN-DEERE).
275
+
|**JobRunType**| Available only in `AgriFoodJobProcessesLogs` table, indicates type of the job run. Value can be either of periodic or one time.|
276
+
|**JobId**| Available in`AgriFoodJobProcessesLogs`, `AgriFoodSatelliteLogs`, `AgriFoodWeatherLogs`, and `AgriFoodModelInferenceLogs`, indicates ID of the job.|
277
+
|**InitiatedBy**| Available only in `AgriFoodJobProcessesLogs` table. Indicates whether a job was initiated by a user or by the service.|
278
+
|**FarmerId**| ID of the farmer associated with the operation.|
279
+
|**Properties**| Available only in`AgriFoodJobProcessesLogs` table, it contains: `farmOperationEntityId` (ID of the entity that failed to be created by the farmOperation job), `farmOperationEntityType`(Type of the entity that failed to be created, can be ApplicationData, PeriodicJob, etc.), `errorCode`(Code for failure of the job at Data Manager for Agriculture end),`errorMessage`(Description of failure at the Data Manager for Agriculture end),`internalErrorCode`(Code of failure of the job provide by the provider),`internalErrorMessage`(Description of the failure provided by the provider),`providerId`(ID of the provider such as JOHN-DEERE).|
280
280
281
281
Each of these tables can be queried by creating a log analytics workspace. Reference for query language is [here](https://learn.microsoft.com/azure/data-explorer/kql-quick-reference).
0 commit comments