Affected by GO-2025-4252
and 5 other vulnerabilities
GO-2025-4252 : Buffer Overflow via Malformed Syslog Message or Malicious Tokenizer Pattern in github.com/elastic/beats
GO-2025-4252 : Buffer Overflow via Malformed Syslog Message or Malicious Tokenizer Pattern in github.com/elastic/beats
GO-2025-4253 : Elasticsearch Packetbeat has Excessive Allocation of Memory and CPU via Malicious IPv4 Fragments in github.com/elastic/beats
GO-2026-4360 : Metricbeat affected by multiple denial of service vulnerabilities in github.com/elastic/beats
GO-2026-4789 : Packetbeat does not properly validate an array index in multiple protocol parser components in github.com/elastic/beats
GO-2026-4790 : Metricbeat Allocates Memory with Excessive Size Value Leading to Denial of Service in github.com/elastic/beats
The highest tagged major version is
v7 .
Discover Packages
github.com/elastic/beats
libbeat
paths
package
Version:
v5.3.3+incompatible
Opens a new window with list of versions in this module.
Published: May 4, 2017
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 2,470
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package paths provides a common way to handle paths
configuration for all Beats.
Currently the following paths are defined:
path.home - It’s the default folder for everything that doesn't fit in
the categories below
path.data - Contains things that are expected to change often during normal
operations (“registry” files, UUID file, etc.)
path.config - Configuration files and Elasticsearch template default location
These settings can be set via the configuration file or via command line flags.
The CLI flags overwrite the configuration file options.
Use the Resolve function to resolve files to their absolute paths. For example,
to look for a file in the config path:
cfgfilePath := paths.Resolve(paths.Config, "beat.yml"
Paths is the Path singleton on which the top level functions from this
package operate.
InitPaths sets the default paths in the configuration based on CLI flags,
configuration file and default values. It also tries to create the data
path with mode 0750 and returns an error on failure.
Resolve resolves a path to a location in one of the default
folders. For example, Resolve(Home, "test") returns an absolute
path for "test" in the home path.
FileType is an enumeration type representing the file types.
Currently existing file types are: Home, Config, Data
New creates a new Paths object with all values set to empty values.
InitPaths sets the default paths in the configuration based on CLI flags,
configuration file and default values. It also tries to create the data
path with mode 0750 and returns an error on failure.
Resolve resolves a path to a location in one of the default
folders. For example, Resolve(Home, "test") returns an absolute
path for "test" in the home path.
String returns a textual representation
Source Files
¶
Click to show internal directories.
Click to hide internal directories.