mkdir -p ${GOPATH}/src/github.com/elastic
cd ${GOPATH}/src/github.com/elastic
git clone https://github.com/elastic/beats.git
make create-module MODULE=p5sh
make create-fileset MODULE=p5sh FILESET=p5shset
After i create pipeline
Then:
make create-fields
make update
What next? How can i enable new module with my system? Documentation breaks off on make update and test
I've created a few modules for our Filebeat, albeit I haven't actually used any of the Makefile's to do so, however from what I can see they just help scaffold the relevant file structure.
It sounds like you have your module configured and the structure probably looks like the below?
Yes, it has the same structure, like in your post.
But also i know that system modules are founded in:
/usr/share/filebeat/module/*
So when i do sudo filebeat modules list - i dont see my custom module.
Question:
How can correct to deploy my custom module?
Copy from $GOPATH/src/github.com/elastic/beats/filebeat/build/module/p5sh? Or what?
It`s unclear for me and it is missing in doc. Thanks for yours reply.
UPD. I tried with standalone filebeat from .tar.gz, copied into modules directory my custom module - it works fine.
But when i copy to /usr/share/filebeat/module - it doesnt work.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.