Documentation
¶
Index ¶
- Constants
- type CloudWatchLogs
- func (c *CloudWatchLogs) Close() error
- func (c *CloudWatchLogs) Connect() error
- func (c *CloudWatchLogs) CreateDest(group, stream string, retention int, logGroupClass string, logSrc logs.LogSrc) logs.LogDest
- func (c *CloudWatchLogs) Description() string
- func (c *CloudWatchLogs) SampleConfig() string
- func (c *CloudWatchLogs) Write(metrics []telegraf.Metric) error
Constants ¶
View Source
const ( LogGroupNameTag = "log_group_name" LogStreamNameTag = "log_stream_name" LogGroupClassTag = "log_group_class" LogTimestampField = "log_timestamp" LogEntryField = "value" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloudWatchLogs ¶
type CloudWatchLogs struct {
Region string `toml:"region"`
RegionType string `toml:"region_type"`
Mode string `toml:"mode"`
EndpointOverride string `toml:"endpoint_override"`
AccessKey string `toml:"access_key"`
SecretKey string `toml:"secret_key"`
RoleARN string `toml:"role_arn"`
Profile string `toml:"profile"`
Filename string `toml:"shared_credential_file"`
Token string `toml:"token"`
//log group and stream names
LogStreamName string `toml:"log_stream_name"`
LogGroupName string `toml:"log_group_name"`
// Retention for log group
RetentionInDays int `toml:"retention_in_days"`
Concurrency int `toml:"concurrency"`
ForceFlushInterval internal.Duration `toml:"force_flush_interval"` // unit is second
Log telegraf.Logger `toml:"-"`
// contains filtered or unexported fields
}
func (*CloudWatchLogs) Close ¶
func (c *CloudWatchLogs) Close() error
func (*CloudWatchLogs) Connect ¶
func (c *CloudWatchLogs) Connect() error
func (*CloudWatchLogs) CreateDest ¶
func (*CloudWatchLogs) Description ¶
func (c *CloudWatchLogs) Description() string
Description returns a one-sentence description on the Output
func (*CloudWatchLogs) SampleConfig ¶
func (c *CloudWatchLogs) SampleConfig() string
SampleConfig returns the default configuration of the Output
Click to show internal directories.
Click to hide internal directories.