Sorry for peppering the boards here with countless questions. You guys have been extremely helpful and I successfully created my module and it passed all tests. Thanks so much!
Now, I'm trying to deploy my module to an existing Elastic stack installation. I haven't found any documentation (on your site or though Google) as to how to do that. So, here's what I've tried:
Before I started, I made sure elasticsearch and kibana were running.
-
I copied my local
.../filebeat/module/my_module
directory to the remote server at/usr/share/filebeat/module
. After filebeat complained, I changed ownership to root. -
I copied my local
.../filebeat/modules.d/my_module.yml.disabled
file to the server at/etc/filebeat/modules.d
. After filebeat complained, I changed ownership to root here too. -
I ran
sudo filebeat modules enable my_module
thensudo service filebeat restart
. -
In the logs, I saw this error:
Exiting: Can only start an input when all related states are finished
. I did some research and ended up just deleting the registry:sudo rm -v /var/lib/filebeat/registry/filebeat/data.json
-
After restarting filebeat, everything seemed to work -- harvesters were started for the logs my module parses.
-
I looked at Kibana to see if any of my fields were showing up. They weren't. I unchecked the "Hide missing fields" box. I picked the last 90 days as the time frame. Most of the logs I'm interested in are from a month ago. I clicked the "Refresh" button several times over about 30 minutes.
-
I checked
/etc/filebeat/fields.yml
on the server and none of the fields from my module were there. I had forgotten about that. But I also kinda thought enabling the module would have updated that file. I copied/pasted from the auto-generatedfields.yml
in my dev environment. I cleared the registry and restarted filebeat. -
Again, harvesters for the logs I care about started up and closed after log inactivity the way they should (I assume). Still, no joy on Kibana.
-
I'm sure I'm seeing the remote Kibana in my browser and not the local Kibana. The remote Kibana doesn't have the grok debugger.
Any ideas as to what might be going wrong? Again, many thanks!