exec

package
v0.6.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 10, 2019 License: Apache-2.0, Apache-2.0 Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

EXEC

Execute a command and use its stdout as event data

Synopsys

SETTING TYPE REQUIRED DEFAULT VALUE
command string true ""
args array false []
stdin bool false false
target string false "stdout"
codec codec false "plain"

Details

command
  • This is a required setting.
  • Value type is string
  • Default value is ""
args
  • Value type is array
  • Default value is []
stdin
  • Value type is bool
  • Default value is false

Pass the complete event to stdin as a json string

target
  • Value type is string
  • Default value is "stdout"

Where do the output should be stored Set "." when output is json formated and want to replace current event fields with output response. (useful)

codec
  • Value type is codec
  • Default value is "plain"

The codec used for input data. Input codecs are a convenient method for decoding your data before it enters the input, without needing a separate filter in your bitfan pipeline

Configuration blueprint

exec{
	command => ""
	args => []
	stdin => false
	target => "stdout"
	codec => "plain"
}

Documentation

Overview

Code generated by "bitfanDoc "; DO NOT EDIT

Execute a command and use its stdout as event data

Index

Constants

View Source
const (
	PORT_SUCCESS = 0
)

Variables

This section is empty.

Functions

func New

func New() processors.Processor

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL