Documentation ¶
Index ¶
Constants ¶
View Source
const ErrorTag = "gogstash_filter_hashfile_error"
ErrorTag tag added to event when process module failed
View Source
const ModuleName = "hashfile"
ModuleName is the name used in config file
Variables ¶
View Source
var SupportedHashes map[string]func(interface{}) Hash = make(map[string]func(interface{}) Hash)
SupportedHashes the list of supported hashes and their init functions
Functions ¶
Types ¶
type FilterConfig ¶
type FilterConfig struct { config.FilterConfig Field string `json:"field" yaml:"field"` // field name of file to hash Output string `json:"output" yaml:"output"` // field name to store output to Algos []string `json:"algos" yaml:"algos"` // hash algos to hash on BufSize int `json:"buf_size" yaml:"buf_size"` // buffer size for copy }
FilterConfig holds the configuration json fields and internal objects
func DefaultFilterConfig ¶
func DefaultFilterConfig() FilterConfig
DefaultFilterConfig returns an FilterConfig struct with default values
Click to show internal directories.
Click to hide internal directories.