Skip to main content

A Python package used to install and enroll the Elastic Agent on multiple operating systems. Created using carcass

Project description

elastic-agent-setup

A python package to install and enroll an Elastic Agent on multiple host operating systems.

Getting Started

In order to use this package you must configure general settings for your environment. Here is an example of the configuration options:

from elastic_agent_setup import ElasticAgent

agent = ElasticAgent()
agent.configure(
    username='admin', 
    password='some_password'
    elasticsearch='https://elasticsearch:9200',
    kibana='https://kibana:5601',
    certificate_authority=None,
    verify_ssl=True
)

Once you have configured the elastic-agent-setup package you can either install or enroll your elastic-agent.

Please see Elatics documentation on the differences between enrolling and installing an agent.

Here is an example of installing an Elastic Agent:

from elastic_agent_setup import ElasticAgent

agent = ElasticAgent()
agent.configure(
    username='admin', 
    password='some_password'
    elasticsearch='https://elasticsearch:9200',
    kibana='https://kibana:5601',
    certificate_authority=None,
    verify_ssl=True
)

response = agent.install(
    version='7.12.1,
    preflight_check=True
)

print(response)

Built With

  • carcass - Python packaging template

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use SemVer for versioning.

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE file for details

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

elastic-agent-setup-0.0.6.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

elastic_agent_setup-0.0.6-py3-none-any.whl (16.6 kB view details)

Uploaded Python 3

File details

Details for the file elastic-agent-setup-0.0.6.tar.gz.

File metadata

  • Download URL: elastic-agent-setup-0.0.6.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/56.0.0 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.9.5

File hashes

Hashes for elastic-agent-setup-0.0.6.tar.gz
Algorithm Hash digest
SHA256 eca2ce0fddff37ca39fd04d0d681fb9fe34074b408c0b43a2ec6fecb263d818f
MD5 bb5f41ddb2f7424197f87151fdbd33d9
BLAKE2b-256 a7d74afdeffecd48f5f08921265ad102b80185925ebe9850241cf24ef669b8d2

See more details on using hashes here.

File details

Details for the file elastic_agent_setup-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: elastic_agent_setup-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 16.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/56.0.0 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.9.5

File hashes

Hashes for elastic_agent_setup-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 7fc8c7aebb838f94d60454d6443668c8c2b5f544c817f6adde16ba4ebb522f63
MD5 a3e63dc74b00b1872991cc44fc8f8055
BLAKE2b-256 7212e35ae7df7d4a3dff7a6e4a4ae7b15e356e004e720547540d400c2b67d6a3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page