Skip to content

Commit

Permalink
Fix developer guide _meta/beat.yml instead of etc/beat.yml (elastic#4300
Browse files Browse the repository at this point in the history
)
  • Loading branch information
tsg authored and ruflin committed May 12, 2017
1 parent 86932ca commit cae485b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/devguide/newbeat.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ countbeat:

The config file is generated when you run `make setup` to <<setting-up-beat,set up the beat>>. The file contains
basic configuration information. To add configuration options to your Beat, you need to update the Go structures in
`config/config.go` and add the corresponding config options to `etc/beat.yml`.
`config/config.go` and add the corresponding config options to `_meta/beat.yml`.

For example, if you add a config option called `path` to the Go structures:

Expand All @@ -369,7 +369,7 @@ var DefaultConfig = Config{
----------------------------------------------------------------------

You also need to add `path` to `etc/beat.yml`:
You also need to add `path` to `_meta/beat.yml`:

[source,yml]
----------------------------------------------------------------------
Expand Down Expand Up @@ -427,7 +427,7 @@ through the `client` variable.
The `event := common.MapStr{}` stores the event in a json format, and `bt.client.PublishEvent(event)` publishes data to Elasticsearch.
In the generated Beat, there are three fields in the event: @timestamp, type, and counter.

When you add fields to the event object, you also need to add them to the `etc/fields.yml` file:
When you add fields to the event object, you also need to add them to the `_meta/fields.yml` file:

[source,yaml]
----------------------------------------------------------------------
Expand Down

0 comments on commit cae485b

Please sign in to comment.