external help file | Module Name | online version | schema |
---|---|---|---|
Az.DataCollectionRule.psm1-help.xml |
Az.Monitor |
2.0.0 |
Create an in-memory object for SyslogDataSource.
New-AzSyslogDataSourceObject [-FacilityName <String[]>] [-LogLevel <String[]>] [-Name <String>]
[-Stream <String[]>] [<CommonParameters>]
Create an in-memory object for SyslogDataSource.
New-AzSyslogDataSourceObject -FacilityName cron -LogLevel Debug,Critical,Emergency -Name cronSyslog -Stream Microsoft-Syslog
FacilityName LogLevel Name Stream
------------ -------- ---- ------
{cron} {Debug, Critical, Emergency} cronSyslog {Microsoft-Syslog}
This command creates a sys log data source object.
New-AzSyslogDataSourceObject -FacilityName syslog -LogLevel Alert,Critical,Emergency -Name syslogBase -Stream Microsoft-Syslog
FacilityName LogLevel Name Stream
------------ -------- ---- ------
{syslog} {Alert, Critical, Emergency} syslogBase {Microsoft-Syslog}
This command creates a sys log data source object.
The list of facility names.
Type: System.String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The log levels to collect.
Type: System.String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
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: System.String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
List of streams that this data source will be sent to. A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to.
Type: System.String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.