New-AzSyslogDataSourceObject
Create an in-memory object for SyslogDataSource.
Sintaxe
Default (Predefinição)
New-AzSyslogDataSourceObject
[-FacilityName <String[]>]
[-LogLevel <String[]>]
[-Name <String>]
[-Stream <String[]>]
[<CommonParameters>]
Description
Create an in-memory object for SyslogDataSource.
Exemplos
Example 1: Create a sys log data source object with cron facility
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.
Example 2: Create a sys log data source object with sys log facility
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.
Parâmetros
-FacilityName
The list of facility names.
Propriedades dos parâmetros
Tipo: | String[] |
Default value: | None |
Suporta carateres universais: | False |
NãoMostrar: | False |
Conjuntos de parâmetros
(All)
Position: | Named |
Obrigatório: | False |
Valor do pipeline: | False |
Valor do pipeline por nome de propriedade: | False |
Valor dos restantes argumentos: | False |
-LogLevel
The log levels to collect.
Propriedades dos parâmetros
Tipo: | String[] |
Default value: | None |
Suporta carateres universais: | False |
NãoMostrar: | False |
Conjuntos de parâmetros
(All)
Position: | Named |
Obrigatório: | False |
Valor do pipeline: | False |
Valor do pipeline por nome de propriedade: | False |
Valor dos restantes argumentos: | 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.
Propriedades dos parâmetros
Tipo: | String |
Default value: | None |
Suporta carateres universais: | False |
NãoMostrar: | False |
Conjuntos de parâmetros
(All)
Position: | Named |
Obrigatório: | False |
Valor do pipeline: | False |
Valor do pipeline por nome de propriedade: | False |
Valor dos restantes argumentos: | False |
-Stream
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.
Propriedades dos parâmetros
Tipo: | String[] |
Default value: | None |
Suporta carateres universais: | False |
NãoMostrar: | False |
Conjuntos de parâmetros
(All)
Position: | Named |
Obrigatório: | False |
Valor do pipeline: | False |
Valor do pipeline por nome de propriedade: | False |
Valor dos restantes argumentos: | 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.