Documentation ¶
Index ¶
- Constants
- Variables
- func AddTags(ms MapStr, tags []string) error
- func BytesHtohl(b []byte) uint32
- func BytesNtohl(b []byte) uint32
- func BytesNtohll(b []byte) uint64
- func BytesNtohs(b []byte) uint16
- func ConfigOverwriteFlag(fs *flag.FlagSet, config *Config, name, path, def, usage string) *string
- func DeDot(s string) string
- func DeDotJSON(json interface{}) interface{}
- func DumpInCSVFormat(fields []string, rows [][]string) string
- func EncodeURLParams(url string, params url.Values) string
- func GenerateKey(key string) string
- func IPv4Ntoa(ip uint32) string
- func IsLoopback(ipStr string) (bool, error)
- func IsStrictPerms() bool
- func LocalIPAddrs() ([]net.IP, error)
- func LocalIPAddrsAsStrings(includeLoopbacks bool) ([]string, error)
- func MakeURL(defaultScheme string, defaultPath string, rawURL string, defaultPort int) (string, error)
- func MergeFields(ms, fields MapStr, underRoot bool) error
- func OverwriteConfigOpts(options []ucfg.Option)
- func RandomBytes(length int) ([]byte, error)
- func ReadString(s []byte) (string, error)
- func Round(val float64, precision int64) (newVal float64)
- func SettingVarFlag(fs *flag.FlagSet, def *Config, name, usage string)
- type Backoff
- type Cache
- func (c *Cache) CleanUp() int
- func (c *Cache) Delete(k Key) Value
- func (c *Cache) Entries() map[Key]Value
- func (c *Cache) Get(k Key) Value
- func (c *Cache) Put(k Key, v Value) Value
- func (c *Cache) PutIfAbsent(k Key, v Value) Value
- func (c *Cache) PutIfAbsentWithTimeout(k Key, v Value, timeout time.Duration) Value
- func (c *Cache) PutWithTimeout(k Key, v Value, timeout time.Duration) Value
- func (c *Cache) Replace(k Key, v Value) Value
- func (c *Cache) ReplaceWithTimeout(k Key, v Value, timeout time.Duration) Value
- func (c *Cache) Size() int
- func (c *Cache) StartJanitor(interval time.Duration)
- func (c *Cache) StopJanitor()
- type CmdlineTuple
- type Config
- func LoadFile(path string) (*Config, error)
- func LoadFiles(paths ...string) (*Config, error)
- func MergeConfigs(cfgs ...*Config) (*Config, error)
- func NewConfig() *Config
- func NewConfigFrom(from interface{}) (*Config, error)
- func NewConfigWithYAML(in []byte, source string) (*Config, error)
- func SettingFlag(fs *flag.FlagSet, name, usage string) *Config
- func (c *Config) Bool(name string, idx int) (bool, error)
- func (c *Config) Child(name string, idx int) (*Config, error)
- func (c *Config) CountField(name string) (int, error)
- func (c *Config) Enabled() bool
- func (c *Config) Float(name string, idx int) (float64, error)
- func (c *Config) GetFields() []string
- func (c *Config) HasField(name string) bool
- func (c *Config) Int(name string, idx int) (int64, error)
- func (c *Config) IsArray() bool
- func (c *Config) IsDict() bool
- func (c *Config) Merge(from interface{}) error
- func (c *Config) Path() string
- func (c *Config) PathOf(field string) string
- func (c *Config) PrintDebugf(msg string, params ...interface{})
- func (c *Config) SetBool(name string, idx int, value bool) error
- func (c *Config) SetChild(name string, idx int, value *Config) error
- func (c *Config) SetFloat(name string, idx int, value float64) error
- func (c *Config) SetInt(name string, idx int, value int64) error
- func (c *Config) SetString(name string, idx int, value string) error
- func (c *Config) String(name string, idx int) (string, error)
- func (c *Config) Unpack(to interface{}) error
- type ConfigNamespace
- type DynamicType
- type Endpoint
- type EventMetadata
- type Field
- type Fields
- type Float
- type HashableIPPortTuple
- type HashableTCPTuple
- type IPPortTuple
- type Key
- type MapStr
- func (m MapStr) Clone() MapStr
- func (m MapStr) CopyFieldsTo(to MapStr, key string) error
- func (m MapStr) DeepUpdate(d MapStr)
- func (m MapStr) Delete(key string) error
- func (m MapStr) Flatten() MapStr
- func (m MapStr) GetValue(key string) (interface{}, error)
- func (m MapStr) HasKey(key string) (bool, error)
- func (m MapStr) MarshalLogObject(enc zapcore.ObjectEncoder) error
- func (m MapStr) Put(key string, value interface{}) (interface{}, error)
- func (m MapStr) String() string
- func (m MapStr) StringToPrint() string
- func (m MapStr) Update(d MapStr)
- type MapStrPointer
- type NetString
- type RemovalListener
- type SettingsFlag
- type StringSet
- type StringsFlag
- func (f *StringsFlag) Get() interface{}
- func (f *StringsFlag) List() []string
- func (f *StringsFlag) Register(fs *flag.FlagSet, name, usage string)
- func (f *StringsFlag) Set(v string) error
- func (f *StringsFlag) SetDefault(v string)
- func (f *StringsFlag) String() string
- func (f *StringsFlag) Type() string
- type TCPTuple
- type Time
- type Value
- type Version
- type VersionizedString
Constants ¶
const ( FieldsKey = "fields" TagsKey = "tags" )
Event metadata constants. These keys are used within libbeat to identify metadata stored in an event.
const ( OK_STATUS = "OK" ERROR_STATUS = "Error" SERVER_ERROR_STATUS = "Server Error" CLIENT_ERROR_STATUS = "Client Error" )
standardized status values
const DefaultDecimalPlacesCount = 4
DefaultDecimalPlacesCount is the default number of decimal places
const MaxIPPortTupleRawSize = 16 + 16 + 2 + 2
const MaxTCPTupleRawSize = 16 + 16 + 2 + 2 + 4
const TsLayout = "2006-01-02T15:04:05.000Z"
TsLayout is the layout to be used in the timestamp marshaling/unmarshaling everywhere. The timezone must always be UTC.
Variables ¶
var ( // ErrKeyNotFound indicates that the specified key was not found. ErrKeyNotFound = errors.New("key not found") )
Functions ¶
func AddTags ¶
AddTags appends a tag to the tags field of ms. If the tags field does not exist then it will be created. If the tags field exists and is not a []string then an error will be returned. It does not deduplicate the list of tags.
func BytesHtohl ¶
func BytesNtohl ¶
func BytesNtohll ¶
func BytesNtohs ¶
func ConfigOverwriteFlag ¶
func ConfigOverwriteFlag( fs *flag.FlagSet, config *Config, name, path, def, usage string, ) *string
ConfigOverwriteFlag defines a new flag updating a setting in an Config object. The name is used as the flag its name the path parameter is the full setting name to be used when the flag is set.
func DeDot ¶
DeDot a string by replacing all . with _ This helps when sending data to Elasticsearch to prevent object and key collisions.
func DeDotJSON ¶
func DeDotJSON(json interface{}) interface{}
DeDotJSON replaces in keys all . with _ This helps when sending data to Elasticsearch to prevent object and key collisions.
func DumpInCSVFormat ¶
DumpInCSVFormat takes a set of fields and rows and returns a string representing the CSV representation for the fields and rows.
func GenerateKey ¶
Recursively generates the correct key based on the dots The mapping requires "properties" between each layer. This is added here.
func IsLoopback ¶
IsLoopback check if a particular IP notation corresponds to a loopback interface.
func IsStrictPerms ¶
func IsStrictPerms() bool
IsStrictPerms returns true if strict permission checking on config files is enabled.
func LocalIPAddrs ¶
LocalIPAddrs finds the IP addresses of the hosts on which the shipper currently runs on.
func LocalIPAddrsAsStrings ¶
LocalIPAddrsAsStrings finds the IP addresses of the hosts on which the shipper currently runs on and returns them as an array of strings.
func MakeURL ¶
func MakeURL(defaultScheme string, defaultPath string, rawURL string, defaultPort int) (string, error)
MakeURL creates the url based on the url configuration. Adds missing parts with defaults (scheme, host, port)
func MergeFields ¶
MergeFields merges the top-level keys and values in each source map (it does not perform a deep merge). If the same key exists in both, the value in fields takes precedence. If underRoot is true then the contents of the fields MapStr is merged with the value of the 'fields' key in ms.
An error is returned if underRoot is true and the value of ms.fields is not a MapStr.
func OverwriteConfigOpts ¶
OverwriteConfigOpts allow to change the globally set config option
func RandomBytes ¶
RandomBytes return a slice of random bytes of the defined length
func ReadString ¶
ReadString extracts the first null terminated string from a slice of bytes.
Types ¶
type Backoff ¶
type Backoff struct {
// contains filtered or unexported fields
}
A Backoff waits on errors with exponential backoff (limited by maximum backoff). Resetting Backoff will reset the next sleep timer to the initial backoff duration.
func NewBackoff ¶
func (*Backoff) WaitOnError ¶
type Cache ¶
Cache is a semi-persistent mapping of keys to values. Elements added to the cache are store until they are explicitly deleted or are expired due time- based eviction based on last access time.
Expired elements are not visible through classes methods, but they do remain stored in the cache until CleanUp() is invoked. Therefore CleanUp() must be invoked periodically to prevent the cache from becoming a memory leak. If you want to start a goroutine to perform periodic clean-up then see StartJanitor().
Cache does not support storing nil values. Any attempt to put nil into the cache will cause a panic.
func NewCache ¶
NewCache creates and returns a new Cache. d is the length of time after last access that cache elements expire. initialSize is the initial allocation size used for the Cache's underlying map.
func NewCacheWithRemovalListener ¶
func NewCacheWithRemovalListener(d time.Duration, initialSize int, l RemovalListener) *Cache
NewCacheWithRemovalListener creates and returns a new Cache and register a RemovalListener callback function. d is the length of time after last access that cache elements expire. initialSize is the initial allocation size used for the Cache's underlying map. l is the callback function that will be invoked when cache elements are removed from the map on CleanUp.
func (*Cache) CleanUp ¶
CleanUp performs maintenance on the cache by removing expired elements from the cache. If a RemoveListener is registered it will be invoked for each element that is removed during this clean up operation. The RemovalListener is invoked on the caller's goroutine.
func (*Cache) Delete ¶
Delete a key from the map and return the value or nil if the key does not exist. The RemovalListener is not notified for explicit deletions.
func (*Cache) Get ¶
Get the current value associated with a key or nil if the key is not present. The last access time of the element is updated.
func (*Cache) Put ¶
Put writes the given key and value to the map replacing any existing value if it exists. The previous value associated with the key returned or nil if the key was not present.
func (*Cache) PutIfAbsent ¶
PutIfAbsent writes the given key and value to the cache only if the key is absent from the cache. Nil is returned if the key-value pair were written, otherwise the old value is returned.
func (*Cache) PutIfAbsentWithTimeout ¶
PutIfAbsentWithTimeout writes the given key and value to the cache only if the key is absent from the cache. Nil is returned if the key-value pair were written, otherwise the old value is returned. The cache expiration time will be overwritten by timeout of the key being inserted.
func (*Cache) PutWithTimeout ¶
PutWithTimeout writes the given key and value to the map replacing any existing value if it exists. The previous value associated with the key returned or nil if the key was not present. The cache expiration time will be overwritten by timeout of the key being inserted.
func (*Cache) Replace ¶
Replace overwrites the value for a key only if the key exists. The old value is returned if the value is updated, otherwise nil is returned.
func (*Cache) ReplaceWithTimeout ¶
ReplaceWithTimeout overwrites the value for a key only if the key exists. The old value is returned if the value is updated, otherwise nil is returned. The cache expiration time will be overwritten by timeout of the key being inserted.
func (*Cache) Size ¶
Size returns the number of elements in the cache. The number includes both active elements and expired elements that have not been cleaned up.
func (*Cache) StartJanitor ¶
StartJanitor starts a goroutine that will periodically invoke the cache's CleanUp() method.
func (*Cache) StopJanitor ¶
func (c *Cache) StopJanitor()
StopJanitor stops the goroutine created by StartJanitor.
type CmdlineTuple ¶
type CmdlineTuple struct {
Src, Dst []byte
}
Source and destination process names, as found by the proc module.
type Config ¶
Config object to store hierarchical configurations into. See https://godoc.org/github.com/elastic/go-ucfg#Config
func MergeConfigs ¶
func NewConfigFrom ¶
func SettingFlag ¶
SettingFlag defines a setting flag, name and it's usage. The return value is the Config object settings are applied to.
func (*Config) PrintDebugf ¶
type ConfigNamespace ¶
type ConfigNamespace struct {
// contains filtered or unexported fields
}
ConfigNamespace storing at most one configuration section by name and sub-section.
func (*ConfigNamespace) Config ¶
func (ns *ConfigNamespace) Config() *Config
Config return the sub-configuration section if a section has been set.
func (*ConfigNamespace) IsSet ¶
func (ns *ConfigNamespace) IsSet() bool
IsSet returns true if a sub-configuration section has been set.
func (*ConfigNamespace) Name ¶
func (ns *ConfigNamespace) Name() string
Name returns the configuration sections it's name if a section has been set.
func (*ConfigNamespace) Unpack ¶
func (ns *ConfigNamespace) Unpack(cfg *Config) error
Unpack unpacks a configuration with at most one sub object. An sub object is ignored if it is disabled by setting `enabled: false`. If the configuration passed contains multiple active sub objects, Unpack will return an error.
type DynamicType ¶
type DynamicType struct{ Value interface{} }
func (*DynamicType) Unpack ¶
func (d *DynamicType) Unpack(s string) error
type EventMetadata ¶
type EventMetadata struct { Fields MapStr FieldsUnderRoot bool `config:"fields_under_root"` Tags []string }
EventMetadata contains fields and tags that can be added to an event via configuration.
type Field ¶
type Field struct { Name string `config:"name"` Type string `config:"type"` Description string `config:"description"` Format string `config:"format"` ScalingFactor int `config:"scaling_factor"` Fields Fields `config:"fields"` MultiFields Fields `config:"multi_fields"` ObjectType string `config:"object_type"` Enabled *bool `config:"enabled"` Analyzer string `config:"analyzer"` SearchAnalyzer string `config:"search_analyzer"` Norms bool `config:"norms"` Dynamic DynamicType `config:"dynamic"` Index *bool `config:"index"` DocValues *bool `config:"doc_values"` CopyTo string `config:"copy_to"` // Kibana specific Analyzed *bool `config:"analyzed"` Count int `config:"count"` Searchable *bool `config:"searchable"` Aggregatable *bool `config:"aggregatable"` Script string `config:"script"` // Kibana params Pattern string `config:"pattern"` InputFormat string `config:"input_format"` OutputFormat string `config:"output_format"` OutputPrecision *int `config:"output_precision"` LabelTemplate string `config:"label_template"` UrlTemplate []VersionizedString `config:"url_template"` OpenLinkInCurrentTab *bool `config:"open_link_in_current_tab"` Path string }
type Fields ¶
type Fields []Field
func LoadFieldsYaml ¶
type HashableIPPortTuple ¶
type HashableIPPortTuple [MaxIPPortTupleRawSize]byte
type HashableTCPTuple ¶
type HashableTCPTuple [MaxTCPTupleRawSize]byte
type IPPortTuple ¶
type IPPortTuple struct { IPLength int SrcIP, DstIP net.IP SrcPort, DstPort uint16 // contains filtered or unexported fields }
func NewIPPortTuple ¶
func (*IPPortTuple) ComputeHashebles ¶
func (t *IPPortTuple) ComputeHashebles()
func (*IPPortTuple) Hashable ¶
func (t *IPPortTuple) Hashable() HashableIPPortTuple
Hashable returns a hashable value that uniquely identifies the IP-port tuple.
func (*IPPortTuple) RevHashable ¶
func (t *IPPortTuple) RevHashable() HashableIPPortTuple
Hashable returns a hashable value that uniquely identifies the IP-port tuple after swapping the source and destination.
func (*IPPortTuple) String ¶
func (t *IPPortTuple) String() string
type MapStr ¶
type MapStr map[string]interface{}
MapStr is a map[string]interface{} wrapper with utility methods for common map operations like converting to JSON.
func ConvertToGenericEvent ¶
ConvertToGenericEvent normalizes the types contained in the given MapStr.
Nil values in maps are dropped during the conversion. Any unsupported types that are found in the MapStr are dropped and warnings are logged.
func MapStrUnion ¶
MapStrUnion creates a new MapStr containing the union of the key-value pairs of the two maps. If the same key is present in both, the key-value pairs from dict2 overwrite the ones from dict1.
func (MapStr) Clone ¶
Clone returns a copy of the MapStr. It recursively makes copies of inner maps.
func (MapStr) CopyFieldsTo ¶
CopyFieldsTo copies the field specified by key to the given map. It will overwrite the key if it exists. An error is returned if the key does not exist in the source map.
func (MapStr) DeepUpdate ¶
DeepUpdate recursively copies the key-value pairs from d to this map. If the key is present and a map as well, the sub-map will be updated recursively via DeepUpdate.
func (MapStr) Flatten ¶
Flatten flattens the given MapStr and returns a flat MapStr.
Example:
"hello": MapStr{"world": "test" }
This is converted to:
"hello.world": "test"
This can be useful for testing or logging.
func (MapStr) GetValue ¶
GetValue gets a value from the map. If the key does not exist then an error is returned.
func (MapStr) HasKey ¶
HasKey returns true if the key exist. If an error occurs then false is returned with a non-nil error.
func (MapStr) MarshalLogObject ¶
func (m MapStr) MarshalLogObject(enc zapcore.ObjectEncoder) error
MarshalLogObject implements the zapcore.ObjectMarshaler interface and allows for more efficient marshaling of MapStr in structured logging.
func (MapStr) Put ¶
Put associates the specified value with the specified key. If the map previously contained a mapping for the key, the old value is replaced and returned. The key can be expressed in dot-notation (e.g. x.y) to put a value into a nested map.
If you need insert keys containing dots then you must use bracket notation to insert values (e.g. m[key] = value).
func (MapStr) StringToPrint ¶
StringToPrint returns the MapStr as pretty JSON.
type MapStrPointer ¶
type MapStrPointer struct {
// contains filtered or unexported fields
}
MapStrPointer stores a pointer to atomically get/set a MapStr object This should give faster access for use cases with lots of reads and a few changes. It's imortant to note that modifying the map is not thread safe, only fully replacing it.
func NewMapStrPointer ¶
func NewMapStrPointer(m MapStr) MapStrPointer
NewMapStrPointer initializes and returns a pointer to the given MapStr
func (MapStrPointer) Get ¶
func (m MapStrPointer) Get() MapStr
Get returns the MapStr stored under this pointer
func (*MapStrPointer) Set ¶
func (m *MapStrPointer) Set(p MapStr)
Set stores a pointer the given MapStr, replacing any previous one
type NetString ¶
type NetString []byte
NetString store the byte length of the data that follows, making it easier to unambiguously pass text and byte data between programs that could be sensitive to values that could be interpreted as delimiters or terminators (such as a null character).
func (NetString) MarshalText ¶
MarshalText exists to implement encoding.TextMarshaller interface to treat []byte as raw string by other encoders/serializers (e.g. JSON)
type RemovalListener ¶
RemovalListener is the callback function type that can be registered with the cache to receive notification of the removal of expired elements.
type SettingsFlag ¶
SettingsFlag captures key/values pairs into an Config object. The flag backed by SettingsFlag can be used multiple times. Values are overwritten by the last usage of a key.
func NewSettingsFlag ¶
func NewSettingsFlag(def *Config) *SettingsFlag
NewSettingsFlag creates a new SettingsFlag instance, not registered with any FlagSet.
func (*SettingsFlag) Config ¶
func (f *SettingsFlag) Config() *Config
Config returns the config object the SettingsFlag stores applied settings to.
func (*SettingsFlag) Get ¶
func (f *SettingsFlag) Get() interface{}
Get returns the Config object used to store values.
func (*SettingsFlag) Set ¶
func (f *SettingsFlag) Set(s string) error
Set sets a settings value in the Config object. The input string must be a key-value pair like `key=value`. If the value is missing, the value is set to the boolean value `true`.
func (*SettingsFlag) String ¶
func (f *SettingsFlag) String() string
String always returns an empty string. It is required to fulfil the flag.Value interface.
func (*SettingsFlag) Type ¶
func (f *SettingsFlag) Type() string
Type reports the type of contents (setting=value) expected to be parsed by Set. It is used to build the CLI usage string.
type StringsFlag ¶
type StringsFlag struct {
// contains filtered or unexported fields
}
StringsFlag collects multiple usages of the same flag into an array of strings. Duplicate values will be ignored.
func NewStringsFlag ¶
func NewStringsFlag(arr *[]string) *StringsFlag
NewStringsFlag creates a new, but unregistered StringsFlag instance. Results of the flag usage will be appended to `arr`. If the slice is not initially empty, its first value will be used as default. If the flag is used, the slice will be emptied first.
func StringArrFlag ¶
func StringArrFlag(fs *flag.FlagSet, name, def, usage string) *StringsFlag
StringArrFlag creates and registers a new StringsFlag with the given FlagSet. If no FlagSet is passed, flag.CommandLine will be used as target FlagSet.
func StringArrVarFlag ¶
func StringArrVarFlag(fs *flag.FlagSet, arr *[]string, name, usage string) *StringsFlag
StringArrVarFlag creates and registers a new StringsFlag with the given FlagSet. Results of the flag usage will be appended to `arr`. If the slice is not initially empty, its first value will be used as default. If the flag is used, the slice will be emptied first. If no FlagSet is passed, flag.CommandLine will be used as target FlagSet.
func (*StringsFlag) Get ¶
func (f *StringsFlag) Get() interface{}
Get returns the backing slice its contents as interface{}. The type used is `[]string`.
func (*StringsFlag) List ¶
func (f *StringsFlag) List() []string
List returns the current set values.
func (*StringsFlag) Register ¶
func (f *StringsFlag) Register(fs *flag.FlagSet, name, usage string)
Register registers the StringsFlag instance with a FlagSet. A valid FlagSet must be used. Register panics if the flag is already registered.
func (*StringsFlag) Set ¶
func (f *StringsFlag) Set(v string) error
Set is used to pass usage of the flag to StringsFlag. Set adds the new value to the backing array. The array will be emptied on Set, if the backing array still contains the default value.
func (*StringsFlag) SetDefault ¶
func (f *StringsFlag) SetDefault(v string)
SetDefault sets the flags new default value. This overwrites the contents in the backing array.
func (*StringsFlag) String ¶
func (f *StringsFlag) String() string
String joins all it's values set into a comma-separated string.
func (*StringsFlag) Type ¶
func (f *StringsFlag) Type() string
Type reports the type of contents (string) expected to be parsed by Set. It is used to build the CLI usage string.
type TCPTuple ¶
type TCPTuple struct { IPLength int SrcIP, DstIP net.IP SrcPort, DstPort uint16 StreamID uint32 // contains filtered or unexported fields }
func TCPTupleFromIPPort ¶
func TCPTupleFromIPPort(t *IPPortTuple, streamID uint32) TCPTuple
func (*TCPTuple) ComputeHashebles ¶
func (t *TCPTuple) ComputeHashebles()
func (*TCPTuple) Hashable ¶
func (t *TCPTuple) Hashable() HashableTCPTuple
Hashable() returns a hashable value that uniquely identifies the TCP tuple.
func (TCPTuple) IPPort ¶
func (t TCPTuple) IPPort() *IPPortTuple
Returns a pointer to the equivalent IpPortTuple.
type Time ¶
Time is an abstraction for the time.Time type
func MustParseTime ¶
MustParseTime is a convenience equivalent of the ParseTime function that panics in case of errors.
func (Time) MarshalJSON ¶
MarshalJSON implements json.Marshaler interface. The time is a quoted string in the JsTsLayout format.
func (*Time) UnmarshalJSON ¶
UnmarshalJSON implements js.Unmarshaler interface. The time is expected to be a quoted string in TsLayout format.
type Version ¶
type Version struct { Major int Minor int Bugfix int Meta string // contains filtered or unexported fields }
func NewVersion ¶
NewVersion expects a string in the format: major.minor.bugfix(-meta)
func (*Version) LessThan ¶
LessThan returns true if v is strictly smaller than v1. When comparing, the major, minor and bugfix numbers are compared in order. The meta part is not taken into account.
func (*Version) LessThanOrEqual ¶
LessThan returns true if v is strictly smaller than v1. When comparing, the major, minor, bugfix and pre-release numbers are compared in order.
type VersionizedString ¶
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package atomic provides common primitive types with atomic accessors.
|
Package atomic provides common primitive types with atomic accessors. |
Package dtfmt provides time formatter support with pattern syntax mostly similar to joda DateTimeFormat.
|
Package dtfmt provides time formatter support with pattern syntax mostly similar to joda DateTimeFormat. |
Package schema contains helper utilities to parse, convert, rename, and reorganize data from the format returned by the various monitored systems to the data model used by Metricbeat.
|
Package schema contains helper utilities to parse, convert, rename, and reorganize data from the format returned by the various monitored systems to the data model used by Metricbeat. |
mapstriface
Package mapstriface contains utilities for transforming map[string]interface{} objects into metricbeat events.
|
Package mapstriface contains utilities for transforming map[string]interface{} objects into metricbeat events. |
mapstrstr
Package mapstrstr contains utilities for transforming map[string]string objects into metricbeat events.
|
Package mapstrstr contains utilities for transforming map[string]string objects into metricbeat events. |
Package streambuf provides helpers for buffering multiple packet payloads and some general parsing functions.
|
Package streambuf provides helpers for buffering multiple packet payloads and some general parsing functions. |