Class SyslogDataSource


  • public final class SyslogDataSource
    extends Object
    Definition of which syslog data will be collected and how it will be collected. Only collected from Linux machines.
    • Constructor Detail

      • SyslogDataSource

        public SyslogDataSource()
    • Method Detail

      • streams

        public List<KnownSyslogDataSourceStreams> streams()
        Get the streams property: 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.
        Returns:
        the streams value.
      • withStreams

        public SyslogDataSource withStreams​(List<KnownSyslogDataSourceStreams> streams)
        Set the streams property: 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.
        Parameters:
        streams - the streams value to set.
        Returns:
        the SyslogDataSource object itself.
      • withFacilityNames

        public SyslogDataSource withFacilityNames​(List<KnownSyslogDataSourceFacilityNames> facilityNames)
        Set the facilityNames property: The list of facility names.
        Parameters:
        facilityNames - the facilityNames value to set.
        Returns:
        the SyslogDataSource object itself.
      • withLogLevels

        public SyslogDataSource withLogLevels​(List<KnownSyslogDataSourceLogLevels> logLevels)
        Set the logLevels property: The log levels to collect.
        Parameters:
        logLevels - the logLevels value to set.
        Returns:
        the SyslogDataSource object itself.
      • name

        public String name()
        Get the name property: 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:
        the name value.
      • withName

        public SyslogDataSource withName​(String name)
        Set the name property: A friendly name for the data source. This name should be unique across all data sources (regardless of type) within the data collection rule.
        Parameters:
        name - the name value to set.
        Returns:
        the SyslogDataSource object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.