New-AzLogFilesDataSourceObject
Create an in-memory object for LogFilesDataSource.
Syntax
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.
Type: | String[] |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | 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.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SettingTextRecordStartTimestampFormat
One of the supported timestamp formats.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | 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.
Type: | String[] |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Outputs
Collabora con noi su GitHub
L'origine di questo contenuto è disponibile in GitHub, in cui è anche possibile creare ed esaminare i problemi e le richieste pull. Per ulteriori informazioni, vedere la guida per i collaboratori.