# 3.1.配置文件

Elasticsearch 有两个配置文件

* `elasticsearch.yml  用来配置`Elasticsearch。
* `log4j2.properties  用来配置` Elasticsearch日志。

所在目录：

默认在 `$ES_HOME/config/`, Debian 和 RPM 包安装的配置目录在`/etc/elasticsearch/`


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://xiaoxiami.gitbook.io/elasticsearch/ji-chu/pei-zhi-wen-jian.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
