Skip to content

Commit 8d8b2df

Browse files
Update data-collection-text-log.md
1 parent d1d04f3 commit 8d8b2df

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

articles/azure-monitor/agents/data-collection-text-log.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ The table created in the script has two columns:
4747

4848
- `TimeGenerated` (datetime) [Required]
4949
- `RawData` (string) [Optional if table schema provided]
50-
- 'FileName' (string) [Optional]
50+
- 'FilePath' (string) [Optional]
5151
- `YourOptionalColumn` (string) [Optional]
5252

53-
The default table schema for log data collected from text files is 'TimeGenerated' and 'RawData'. Adding the 'FileName' to either team is optional. If you know your final schema or your source is a JSON log, you can add the final columns in the script before creating the table. You can always [add columns using the Log Analytics table UI](../logs/create-custom-table.md#add-or-delete-a-custom-column) later.
53+
The default table schema for log data collected from text files is 'TimeGenerated' and 'RawData'. Adding the 'FilePath' to either team is optional. If you know your final schema or your source is a JSON log, you can add the final columns in the script before creating the table. You can always [add columns using the Log Analytics table UI](../logs/create-custom-table.md#add-or-delete-a-custom-column) later.
5454

5555
Your columns names and JSON attributes must exactly match to be automatically parse into the table. Both columns and JSON attributes are case sensitive. For example `Rawdata` will not collect the event data. It must be `RawData`. Ingestion will drop JSON attributes that do not have a corresponding column.
5656

@@ -74,7 +74,7 @@ $tableParams = @'
7474
"type": "String"
7575
},
7676
{
77-
"name": "FileName",
77+
"name": "FilePath",
7878
"type": "String"
7979
},
8080
{
@@ -205,7 +205,7 @@ To create the data collection rule in the Azure portal:
205205
"type": "string"
206206
},
207207
{
208-
"name": "FileName",
208+
"name": "FilePath",
209209
"type": "String"
210210
},
211211
{
@@ -288,7 +288,7 @@ To create the data collection rule in the Azure portal:
288288
"type": "datetime"
289289
},
290290
{
291-
"name": "FileName",
291+
"name": "FilePath",
292292
"type": "String"
293293
},
294294
{

0 commit comments

Comments
 (0)