Skip to content

Commit acce9e9

Browse files
Merge pull request #279647 from JeffreyWolford/patch-23
Add Computer Name to Custom Logs
2 parents 5c8f30b + 755bb01 commit acce9e9

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

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

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,11 @@ The table created in the script has two columns:
4646

4747
- `TimeGenerated` (datetime) [Required]
4848
- `RawData` (string) [Optional if table schema provided]
49-
- 'FilePath' (string) [Optional]
49+
- `FilePath` (string) [Optional]
50+
- `Computer` (string) [Optional]
5051
- `YourOptionalColumn` (string) [Optional]
5152

52-
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.
53+
The default table schema for log data collected from text files is 'TimeGenerated' and 'RawData'. Adding the 'FilePath' or 'Computer' to either stream 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.
5354

5455
Your column names and JSON attributes must exactly match to 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.
5556

@@ -76,7 +77,11 @@ $tableParams = @'
7677
"name": "FilePath",
7778
"type": "String"
7879
},
79-
{
80+
{
81+
"name": "Computer",
82+
"type": "String"
83+
},
84+
{
8085
"name": "YourOptionalColumn",
8186
"type": "String"
8287
}

0 commit comments

Comments
 (0)