Hello!
The blog instructions at https://www.elastic.co/blog/build-your-own-beat need to be updated.
First, the current directory structure of a skeleton Beat using cookiecutter is the following:
.
├── CONTRIBUTING.md
├── LICENSE
├── Makefile
├── README.md
├── _meta
│ ├── beat.yml
│ └── fields.yml
├── beater
│ └── mybeat.go
├── config
│ ├── config.go
│ └── config_test.go
├── docs
│ └── index.asciidoc
├── main.go
├── main_test.go
├── mybeat.template.json
└── tests
└── system
├── config
│ └── mybeat.yml.j2
├── mybeat.py
├── requirements.txt
└── test_base.py
7 directories, 17 files
Also, the instruction git checkout 5.1 causes an error when running make setup for the first time:
File "./vendor/github.com/elastic/beats/libbeat/scripts/generate_index_pattern.py", line 38
print "ERROR: Field", path, "is duplicated. Please delete it and try again. Fields already are", unique_fields
^
SyntaxError: Missing parentheses in call to 'print'
This error does not happen if the master branch is checked out.
John