New-AzLogFilesDataSourceObject
Create an in-memory object for LogFilesDataSource.
Syntax
Default (Default)
New-AzLogFilesDataSourceObject
-FilePattern <String[]>
-Stream <String[]>
[-Name <String>]
[-SettingTextRecordStartTimestampFormat <String>]
[<CommonParameters>]
Description
Create an in-memory object for LogFilesDataSource.
Examples
Example 1: Create a custom text log data source object
New-AzLogFilesDataSourceObject -FilePattern "C:\\JavaLogs\\*.log" -Stream "Custom-TabularData-ABC" -Name myTabularLogDataSource -SettingTextRecordStartTimestampFormat "yyyy-MM-ddTHH:mm:ssK"
FilePattern : {C:\\JavaLogs\\*.log}
Format : text
Name : myTabularLogDataSource
SettingTextRecordStartTimestampFormat : yyyy-MM-ddTHH:mm:ssK
Stream : {Custom-TabularData-ABC}
This command creates a custom text log data source object.
Parameters
-FilePattern
File Patterns where the log files are located.
Parameter properties
Type: | String[] |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Name
A friendly name for the data source. This name should be unique across all data sources (regardless of type) within the data collection rule.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-SettingTextRecordStartTimestampFormat
One of the supported timestamp formats.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Stream
List of streams that this data source will be sent to. A stream indicates what schema will be used for this data source.
Parameter properties
Type: | String[] |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.