Documentation ¶
Index ¶
Constants ¶
const UnstructuredProcessingMetricName = "datadog.logs_agent.tailer.unstructured_processing"
UnstructuredProcessingMetricName collects how many rules are used on unstructured content for tailers capable of processing both unstructured and structured content.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Encoder ¶
Encoder turns a message into a raw byte array ready to be sent.
var JSONEncoder Encoder = &jsonEncoder{}
JSONEncoder is a shared json encoder.
var JSONServerlessEncoder Encoder = &jsonServerlessEncoder{}
JSONServerlessEncoder is a shared json encoder sending a struct message field instead of a bytes message field. This encoder is used in the AWS Lambda serverless environment.
var ProtoEncoder Encoder = &protoEncoder{}
ProtoEncoder is a shared proto encoder.
var RawEncoder Encoder = &rawEncoder{}
RawEncoder is a shared raw encoder.
type Processor ¶
type Processor struct { // ReconfigChan transports rules to use in order to reconfigure // the processing rules of the SDS Scanner. ReconfigChan chan sds.ReconfigureOrder // contains filtered or unexported fields }
A Processor updates messages from an inputChan and pushes in an outputChan.
func New ¶
func New(inputChan, outputChan chan *message.Message, processingRules []*config.ProcessingRule, encoder Encoder, diagnosticMessageReceiver diagnostic.MessageReceiver, hostname hostnameinterface.Component, pipelineID int) *Processor
New returns an initialized Processor.
func (*Processor) Flush ¶
Flush processes synchronously the messages that this processor has to process.
func (*Processor) GetHostname ¶
GetHostname returns the hostname to applied the given log message