# Elastic Agent Standalone Configuration Validation

**URL:** https://discuss.elastic.co/t/elastic-agent-standalone-configuration-validation/298562
**Category:** Beats
**Tags:** elastic-agent
**Created:** [March 1, 2022, 8:49pm UTC](https://discuss.elastic.co/t/elastic-agent-standalone-configuration-validation/298562 "2022-03-01T20:49:26Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![BenB196](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/benb196/32/83401_2.png) [@BenB196](https://discuss.elastic.co/u/BenB196)
#### Post date: [March 1, 2022, 8:49pm UTC](https://discuss.elastic.co/t/elastic-agent-standalone-configuration-validation/298562/1 "2022-03-01T20:49:26Z")

</div>

Hi All,

I was wondering if there is a way with the Elastic Agent in standalone mode to validate a configuration?

Looking at the output of the Elastic Agent process:

```auto
elastic-agent help  
Usage:
  elastic-agent [subcommand] [flags]
  elastic-agent [command]

Available Commands:
  diagnostics Gather diagnostics information from the elastic-agent and running processes.
  enroll Enroll the Agent into Fleet
  help Help about any command
  inspect Shows configuration of the agent
  install Install Elastic Agent permanently on this system
  restart Restart the currently running Elastic Agent daemon
  run Start the elastic-agent.
  status Status returns the current status of the running Elastic Agent daemon.
  uninstall Uninstall permanent Elastic Agent from this system
  upgrade Upgrade the currently running Elastic Agent to the specified version
  version Display the version of the elastic-agent.
  watch Watch watches Elastic Agent for failures and initiates rollback.

Flags:
  -c, --c string Configuration file, relative to path.config (default "elastic-agent.yml")
  -d, --d string Enable certain debug selectors
  -e, --e Log to stderr and disable syslog/file output
      --environment environmentVar set environment being ran in (default default)
  -h, --help help for elastic-agent
      --path.config string Config path is the directory Agent looks for its config file (default "/usr/share/elastic-agent")
      --path.downloads string Downloads path contains binaries Agent downloads
      --path.home string Agent root path (default "/usr/share/elastic-agent")
      --path.install string Install path contains binaries Agent extracts
      --path.logs string Logs path contains Agent log output (default "/usr/share/elastic-agent")
  -v, --v Log at INFO level

Use "elastic-agent [command] --help" for more information about a command.

```

There doesn't appear to be an option for validating a configuration that is being passed to it.

I'm attempting to setup some automation for CI/CD and want to add a test to validate that a config is valid, but can't seem to find a good solution for this.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [March 29, 2022, 10:49pm UTC](https://discuss.elastic.co/t/elastic-agent-standalone-configuration-validation/298562/2 "2022-03-29T22:49:46Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
