Documentation ¶
Index ¶
- func BuildDefaultConfigurationYAML() string
- func DefaultGrokLibraryDirs(expand bool) []string
- func DetermineConfigFilePath() string
- func InitDefaultGrokLibraryDir()
- func JogHomeDir(expand bool, children ...string) string
- func MarshalYAML(i DynamicObject) (interface{}, error)
- func ResetDefaultGrokLibraryDir()
- func SaveGrokPatternFile(dir string, patternFileName string, patternFileContent string)
- func ShortenValue(inValue string, printFormat string) string
- func UnmarshalYAML(i DynamicObject, unmarshal func(interface{}) error) error
- type CompressPrefix
- func (i CompressPrefix) Compress(text string) string
- func (i CompressPrefix) FromMap(m map[string]interface{}) error
- func (i CompressPrefix) Init(cfg Configuration)
- func (i CompressPrefix) MarshalYAML() (interface{}, error)
- func (i CompressPrefix) Reset()
- func (i CompressPrefix) ToMap() map[string]interface{}
- func (i CompressPrefix) UnmarshalYAML(unmarshal func(interface{}) error) error
- type CompressPrefixAction
- type CompressPrefixT
- type Configuration
- func (i Configuration) FromMap(m map[string]interface{}) error
- func (i Configuration) HasFieldInPattern(fieldName string) bool
- func (i Configuration) Init(cfg Configuration)
- func (i Configuration) MarshalYAML() (interface{}, error)
- func (i Configuration) Reset()
- func (i Configuration) ToMap() map[string]interface{}
- func (i Configuration) UnmarshalYAML(unmarshal func(interface{}) error) error
- type ConfigurationT
- type DynamicObject
- type Element
- func (i Element) FromMap(m map[string]interface{}) error
- func (i Element) GetColor(value string) util.Color
- func (i Element) Init(cfg Configuration)
- func (i Element) IsEnabled() bool
- func (i Element) MarshalYAML() (interface{}, error)
- func (i Element) PrintTo(color util.Color, builder *strings.Builder, a string)
- func (i Element) Reset()
- func (i Element) ToMap() map[string]interface{}
- func (i Element) UnmarshalYAML(unmarshal func(interface{}) error) error
- type ElementT
- type Enum
- type EnumMap
- func (i EnumMap) FromMap(m map[string]interface{}) error
- func (i EnumMap) GetEnum(value string) Enum
- func (i EnumMap) Init(cfg Configuration)
- func (i EnumMap) IsEmpty() bool
- func (i EnumMap) MarshalYAML() (interface{}, error)
- func (i EnumMap) Reset()
- func (i EnumMap) ToMap() map[string]interface{}
- func (i EnumMap) UnmarshalYAML(unmarshal func(interface{}) error) error
- type EnumMapT
- type EnumT
- type Field
- func (i Field) FromMap(m map[string]interface{}) error
- func (i Field) GetColor(value string) util.Color
- func (i Field) Init(cfg Configuration)
- func (i Field) IsEnum() bool
- func (i Field) MarshalYAML() (interface{}, error)
- func (i Field) Reset()
- func (i Field) ToMap() map[string]interface{}
- func (i Field) UnmarshalYAML(unmarshal func(interface{}) error) error
- type FieldMap
- func (i FieldMap) FromMap(m map[string]interface{}) error
- func (i FieldMap) Init(cfg Configuration)
- func (i FieldMap) MarshalYAML() (interface{}, error)
- func (i FieldMap) Reset()
- func (i FieldMap) ToMap() map[string]interface{}
- func (i FieldMap) UnmarshalYAML(unmarshal func(interface{}) error) error
- type FieldMapT
- type FieldT
- type FieldType
- type Grok
- func (i Grok) FromMap(m map[string]interface{}) error
- func (i Grok) Init(cfg Configuration)
- func (i Grok) MarshalYAML() (interface{}, error)
- func (i Grok) Parse(pattern string, line string) (map[string]string, error)
- func (i Grok) Reset()
- func (i Grok) ToMap() map[string]interface{}
- func (i Grok) UnmarshalYAML(unmarshal func(interface{}) error) error
- type GrokT
- type OtherFields
- type OtherFieldsT
- type Prefix
- type PrefixT
- type SeparatorField
- type SeparatorFieldT
- type StartupLine
- type StartupLineT
- type StringSet
- func (i StringSet) Contains(v string) bool
- func (i StringSet) ContainsPrefixOf(v string) bool
- func (i StringSet) MarshalYAML() (interface{}, error)
- func (i StringSet) Parse(input interface{})
- func (i StringSet) Reset()
- func (i StringSet) String() string
- func (i StringSet) UnmarshalYAML(unmarshal func(interface{}) error) error
- type StringSetT
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildDefaultConfigurationYAML ¶ added in v1.0.3
func BuildDefaultConfigurationYAML() string
BuildDefaultConfigurationYAML ...
func DefaultGrokLibraryDirs ¶ added in v1.0.3
DefaultGrokLibraryDirs ...
func DetermineConfigFilePath ¶ added in v0.9.16
func DetermineConfigFilePath() string
DetermineConfigFilePath return (file path)
func InitDefaultGrokLibraryDir ¶ added in v1.0.3
func InitDefaultGrokLibraryDir()
InitDefaultGrokLibraryDir ...
func JogHomeDir ¶ added in v1.0.3
JogHomeDir ...
func MarshalYAML ¶ added in v0.9.16
func MarshalYAML(i DynamicObject) (interface{}, error)
MarshalYAML ...
func ResetDefaultGrokLibraryDir ¶ added in v1.0.3
func ResetDefaultGrokLibraryDir()
ResetDefaultGrokLibraryDir ...
func SaveGrokPatternFile ¶ added in v1.0.3
SaveGrokPatternFile ...
func ShortenValue ¶ added in v1.0.3
ShortenValue shortens the value to maxWidth -3 chars if necessary, shortend values will be postfixed by three dots
func UnmarshalYAML ¶ added in v0.9.16
func UnmarshalYAML(i DynamicObject, unmarshal func(interface{}) error) error
UnmarshalYAML ...
Types ¶
type CompressPrefix ¶ added in v0.9.5
type CompressPrefix = *CompressPrefixT
CompressPrefix ..
func (CompressPrefix) Compress ¶ added in v0.9.5
func (i CompressPrefix) Compress(text string) string
Compress ...
func (CompressPrefix) FromMap ¶ added in v0.9.5
func (i CompressPrefix) FromMap(m map[string]interface{}) error
FromMap ...
func (CompressPrefix) Init ¶ added in v0.9.16
func (i CompressPrefix) Init(cfg Configuration)
Init ...
func (CompressPrefix) MarshalYAML ¶ added in v0.9.5
func (i CompressPrefix) MarshalYAML() (interface{}, error)
MarshalYAML ...
func (CompressPrefix) ToMap ¶ added in v0.9.5
func (i CompressPrefix) ToMap() map[string]interface{}
ToMap ...
func (CompressPrefix) UnmarshalYAML ¶ added in v0.9.5
func (i CompressPrefix) UnmarshalYAML(unmarshal func(interface{}) error) error
UnmarshalYAML ...
type CompressPrefixAction ¶ added in v0.9.5
type CompressPrefixAction int
CompressPrefixAction ...
const ( // CompressPrefixActionRemoveNonFirstLetter ... CompressPrefixActionRemoveNonFirstLetter CompressPrefixAction = iota // CompressPrefixActionRemove ... CompressPrefixActionRemove // CompressPrefixActionDefault ... CompressPrefixActionDefault = CompressPrefixActionRemoveNonFirstLetter )
func ParseCompressPrefixAction ¶ added in v0.9.5
func ParseCompressPrefixAction(text string) CompressPrefixAction
ParseCompressPrefixAction ...
func (CompressPrefixAction) String ¶ added in v0.9.5
func (i CompressPrefixAction) String() string
Format ...
type CompressPrefixT ¶ added in v0.9.5
type CompressPrefixT struct { yaml.Unmarshaler yaml.Marshaler Enabled bool Separators StringSet WhiteList StringSet Action CompressPrefixAction }
CompressPrefixT ...
type Configuration ¶ added in v0.9.16
type Configuration = *ConfigurationT
Configuration ...
func WithDefaultYamlFile ¶ added in v0.9.16
func WithDefaultYamlFile() Configuration
WithDefaultYamlFile ...
func (Configuration) FromMap ¶ added in v0.9.16
func (i Configuration) FromMap(m map[string]interface{}) error
FromMap ...
func (Configuration) HasFieldInPattern ¶ added in v0.9.16
func (i Configuration) HasFieldInPattern(fieldName string) bool
HasFieldInPattern ...
func (Configuration) Init ¶ added in v0.9.16
func (i Configuration) Init(cfg Configuration)
Init ...
func (Configuration) MarshalYAML ¶ added in v0.9.16
func (i Configuration) MarshalYAML() (interface{}, error)
MarshalYAML ...
func (Configuration) ToMap ¶ added in v0.9.16
func (i Configuration) ToMap() map[string]interface{}
ToMap ...
func (Configuration) UnmarshalYAML ¶ added in v0.9.16
func (i Configuration) UnmarshalYAML(unmarshal func(interface{}) error) error
UnmarshalYAML ...
type ConfigurationT ¶ added in v0.9.16
type ConfigurationT struct { // TODO: configurable Colorization bool Replace map[string]string Pattern string HasOthersFieldInPattern bool StartupLine StartupLine `yaml:"startup-line"` LineNo Element `yaml:"line-no"` UnknownLine Element `yaml:"unknown-line"` Prefix Prefix Fields FieldMap LevelField Field TimestampField Field Grok Grok // contains filtered or unexported fields }
ConfigurationT ...
type DynamicObject ¶ added in v0.9.16
type DynamicObject interface { Reset() FromMap(m map[string]interface{}) error ToMap() map[string]interface{} Init(cfg Configuration) }
DynamicObject ...
type Element ¶
type Element = *ElementT
Element ...
func (Element) UnmarshalYAML ¶
UnmarshalYAML ...
type EnumMap ¶
type EnumMap = *EnumMapT
EnumMap ...
func (EnumMap) UnmarshalYAML ¶
UnmarshalYAML ...
type EnumMapT ¶
type EnumMapT struct { CaseSensitive bool `yaml:"case-sensitive"` Default string // contains filtered or unexported fields }
EnumMapT ...
type FieldMap ¶
type FieldMap = *FieldMapT
FieldMap ...
func (FieldMap) UnmarshalYAML ¶
UnmarshalYAML ...
type FieldMapT ¶
type FieldMapT struct { Others OtherFields StandardsWithAllAliases map[string]Field Standards map[string]Field }
FieldMapT ...
type FieldT ¶
type FieldT struct { ElementT Name string Alias util.MultiString CaseSensitive bool `yaml:"case-sensitive"` CompressPrefix `yaml:"compress-prefix"` Enums EnumMap Type FieldType TimeFormat string `yaml:"time-format"` Timezone string `yaml:"timezone"` TimeLocation *time.Location }
FieldT ...
type Grok ¶ added in v1.0.3
type Grok = *GrokT
Grok ...
func (Grok) MarshalYAML ¶ added in v1.0.3
MarshalYAML ...
func (Grok) UnmarshalYAML ¶ added in v1.0.3
UnmarshalYAML ...
type GrokT ¶ added in v1.0.3
type GrokT struct { Uses []string `yaml:"uses"` MatchesFields []string `yaml:"matches-fields"` LibraryDirs []string `yaml:"library-dirs"` // contains filtered or unexported fields }
GrokT ...
type OtherFields ¶
type OtherFields = *OtherFieldsT
OtherFields ...
func (OtherFields) ToMap ¶ added in v0.9.3
func (i OtherFields) ToMap() map[string]interface{}
ToMap ...
type OtherFieldsT ¶
type OtherFieldsT struct { Name Element Separator SeparatorField Value Element }
OtherFieldsT ...
type SeparatorField ¶
type SeparatorField = *SeparatorFieldT
SeparatorField ...
func (SeparatorField) FromMap ¶
func (i SeparatorField) FromMap(m map[string]interface{}) error
FromMap ...
func (SeparatorField) MarshalYAML ¶
func (i SeparatorField) MarshalYAML() (interface{}, error)
MarshalYAML ...
func (SeparatorField) UnmarshalYAML ¶
func (i SeparatorField) UnmarshalYAML(unmarshal func(interface{}) error) error
UnmarshalYAML ...
type StartupLine ¶
type StartupLine = *StartupLineT
StartupLine ...
func (StartupLine) FromMap ¶
func (i StartupLine) FromMap(m map[string]interface{}) error
FromMap ...
func (StartupLine) MarshalYAML ¶
func (i StartupLine) MarshalYAML() (interface{}, error)
MarshalYAML ...
func (StartupLine) UnmarshalYAML ¶
func (i StartupLine) UnmarshalYAML(unmarshal func(interface{}) error) error
UnmarshalYAML ...
type StringSet ¶ added in v0.9.5
type StringSet = *StringSetT
StringSet ...
func (StringSet) ContainsPrefixOf ¶ added in v0.9.6
ContainsPrefixOf ...
func (StringSet) MarshalYAML ¶ added in v0.9.5
MarshalYAML ...
func (StringSet) UnmarshalYAML ¶ added in v0.9.5
UnmarshalYAML ...