You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updated dev guide instructions to work with master (#30014)
filebeat fails (hangs) on 8.0 due to `Elasticsearch is too old.` so updating to 8.1 as well as fixing up expectations around authentication, ssl, and information about options and where to find logs.
Copy file name to clipboardExpand all lines: docs/devguide/modules-dev-guide.asciidoc
+41-3Lines changed: 41 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -485,8 +485,46 @@ run.
485
485
In order to test the filesets with the sample logs and/or generate the expected output one should run the tests
486
486
locally for a specific module, using the following procedure under Filebeat directory:
487
487
488
-
. Run an Elasticsearch instance locally using docker: `docker run -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:8.0.0-SNAPSHOT`
488
+
. Start an Elasticsearch instance locally. For example, using Docker:
. Add and remove option env vars as required. Here are some useful ones:
522
+
* `TESTING_FILEBEAT_ALLOW_OLDER`: if set to 1, allow connecting older versions of Elasticsearch
523
+
* `TESTING_FILEBEAT_MODULES`: comma separated list of modules to test.
524
+
* `TESTING_FILEBEAT_FILESETS`: comma separated list of filesets to test.
525
+
* `TESTING_FILEBEAT_FILEPATTERN`: glob pattern for log files within the fileset to test.
526
+
* `GENERATE`: if set to 1, the expected documents will be generated.
527
+
528
+
The filebeat logs are writen to the `build` directory. It may be useful to tail them in another terminal using `tail -F build/system-tests/run/test_modules.Test.*/output.log`.
529
+
530
+
For example if there's a syntax error in an ingest pipeline, the test will probably just hang. The filebeat log output will contain the error message from elasticsearch.
0 commit comments