> For the complete documentation index, see [llms.txt](https://docs.elastiflow.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.elastiflow.com/flowcoll/configuration/config_gen.md).

# General Configuration

ElastiFlow now supports YAML configuration files for all binaries, with a default file location of `/etc/elastiflow/<binary_name>.yml`. These YAML files are compatible with all existing ElastiFlow settings.

Although environment variables are still available for configuring the collector, the systemd attributes file may be removed in future releases.

To use a YAML file for configuration, either place it in the default location or specify a custom location with the `--config` or `-c` flag when running the binary:

```bash
./flowcoll --config=/etc/elastiflow/flowcoll.yml
```

or

```bash
./flowcoll -c=/etc/elastiflow/flowcoll.yml
```

### Implementing YAML Configuration

This example demonstrates configuring logging settings for the ElastiFlow flow-collector binary using a `flowcoll.yml` file:

1. Create a new file called `flowcoll.yml` with the following content.

   ```yaml
   EF_LOGGER_LEVEL: 'info'
   EF_LOGGER_ENCODING: 'json'
   EF_LOGGER_FILE_LOG_ENABLE: true
   EF_LOGGER_FILE_LOG_FILENAME: '/var/log/elastiflow/flowcoll/flowcoll.log'
   EF_LOGGER_FILE_LOG_MAX_SIZE: 100
   EF_LOGGER_FILE_LOG_MAX_AGE: 7
   EF_LOGGER_FILE_LOG_MAX_BACKUPS: 4
   EF_LOGGER_FILE_LOG_COMPRESS: false
   ```
2. Customize the settings as needed and create additional YAML files for other ElastiFlow binaries if required.
3. Run the flowcoll binary with the `--config` flag, specifying the path to your `flowcoll.yml` file:

   ```bash
   ./flowcoll --config=/path/to/flowcoll.yml
   ```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.elastiflow.com/flowcoll/configuration/config_gen.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
