Elastic Agent


Error

You must log in or register to view this page

Elastic Agent is a single, unified way to add monitoring for logs, metrics, and other types of data to a host.

Software pattern summary

The following table gives an overview of the pattern characteristics:

Product component

OS type

Versioning

Pattern depth

ElasticAgent

UNIX

Active, Path

Instance-based

ElasticAgentWindowsActive, Package, PathInstance-based
FleetServerUNIXPathInstance-based

Platforms supported by the pattern

The pattern discovers Elastic Agent deployments on the UNIX and Windows systems.

Identification

To run a discovery of the product, the pattern must be triggered. This section describes conditions under which the pattern can be triggered.

Software instance triggers

The following table gives details about the pattern trigger:

Pattern

Trigger node

Attribute

Condition

Argument

ElasticAgent

DiscoveredProcess

cmd

matches

regex '\belastic\-agent$'

  or 
  cmdmatchesregex '(?i)\belastic\-agent\.exe$'
FleetServerDiscoveredProcesscmdmatchesregex '\bfleet\-server$'

Software Instance type attributes

The pattern in this module sets the following attributes:

Pattern name

SI type

ElasticAgentElastic Agent
FleetServerElastic Fleet Server

Simple identification mappings

The following component/process is identified by using the simple identity mappings that map the product's known processes:

Name

Command

Elastic Agentregex '\belastic\-agent$'
Elastic Agentregex '(?i)\belastic\-agent\.exe$'
Elastic Fleet Serverregex '\bfleet\-server$'

Versioning

Version information for the product is collected by using the active, package, and path versioning methods.

Active versioning

The ElasticAgent pattern attempts to extract versioning from the output of the following command:

  • <trigger_cmd> version

Package versioning

The ElasticAgent pattern gets the list of packages installed on the host and compares each of them against the following regular expression:

  • (?i)^Elastic Agent$

If a matching package is found, its versioning information is extracted.

Path versioning

The ElasticAgent pattern extracts versioning information from the command line of the trigger process using the following regular expression:

  • [/\\]elastic\-agent\-?(\d+(?:\.\d+)*)

If this fails, the ElasticAgent pattern tries to get the version from the path of any child processes using the following regular expression:

  • [/\\]elastic\-agent\-(\d+(?:\.\d+)*)\-

The FleetServer pattern extracts versioning information from the command line of the trigger process using the following regular expression:

  • fleet\-server\-(\d+(?:\.\d+)*)

Application model produced by the software pattern

If the pattern discovers a SoftwareInstance of Elastic Agent, it defines the software instance's architecture in the form of the application model.

Pattern trigger

The ElasticAgent pattern triggers on a elastic-agent or elastic-agent.exe process.

The FleetServer pattern triggers on a fleet-server process.

SI depth

The ElasticAgent pattern creates an instance-based Software Instance whose key is based on type (i.e. Elastic Agent) and host key.

The FleetServer pattern creates an instance-based Software Instance whose key is based on type (i.e. Elastic Fleet Server) and host key.

Subject matter expertise

Inputs from subject matter experts are welcome on any other potential approaches not discussed in this topic.

Testing

The pattern has been tested against the available customer data.

Open issues

There are no known open issues with this pattern.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

BMC Discovery content reference