ArmMonitorModelFactory.SyslogDataSource Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Definition of which syslog data will be collected and how it will be collected. Only collected from Linux machines.
public static Azure.ResourceManager.Monitor.Models.SyslogDataSource SyslogDataSource(System.Collections.Generic.IEnumerable<Azure.ResourceManager.Monitor.Models.SyslogDataSourceStream> streams = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Monitor.Models.SyslogDataSourceFacilityName> facilityNames = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Monitor.Models.SyslogDataSourceLogLevel> logLevels = default, string transformKql = default, string name = default);
static member SyslogDataSource : seq<Azure.ResourceManager.Monitor.Models.SyslogDataSourceStream> * seq<Azure.ResourceManager.Monitor.Models.SyslogDataSourceFacilityName> * seq<Azure.ResourceManager.Monitor.Models.SyslogDataSourceLogLevel> * string * string -> Azure.ResourceManager.Monitor.Models.SyslogDataSource
Public Shared Function SyslogDataSource (Optional streams As IEnumerable(Of SyslogDataSourceStream) = Nothing, Optional facilityNames As IEnumerable(Of SyslogDataSourceFacilityName) = Nothing, Optional logLevels As IEnumerable(Of SyslogDataSourceLogLevel) = Nothing, Optional transformKql As String = Nothing, Optional name As String = Nothing) As SyslogDataSource
Parameters
- streams
- IEnumerable<SyslogDataSourceStream>
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.
- facilityNames
- IEnumerable<SyslogDataSourceFacilityName>
The list of facility names.
- logLevels
- IEnumerable<SyslogDataSourceLogLevel>
The log levels to collect.
- transformKql
- String
The KQL query to transform the data source. This is a deprecated property and will be removed in future versions.
- name
- String
A friendly name for the data source. This name should be unique across all data sources (regardless of type) within the data collection rule.
Returns
A new SyslogDataSource instance for mocking.