✅ Elasticsearch security features have been automatically configured! ✅ Authentication is enabled and cluster connections are encrypted.
ℹ️ Password for the elastic user (reset with `bin/elasticsearch-reset-password -u elastic`): -cI=lIuJr2XhOQFgjpSd
ℹ️ HTTP CA certificate SHA-256 fingerprint: 2493cecae8862777b29a8280cc1bf83272382319b3713c2d47080e34a212d3da
ℹ️ Configure Kibana to use this cluster: • Run Kibana and click the configuration link in the terminal when Kibana starts. • Copy the following enrollment token and paste it into Kibana in your browser (valid for the next 30 minutes): eyJ2ZXIiOiI4LjYuMCIsImFkciI6WyIxOTIuMTY4LjMuNzg6OTIwMCJdLCJmZ3IiOiIyNDkzY2VjYWU4ODYyNzc3YjI5YTgyODBjYzFiZjgzMjcyMzgyMzE5YjM3MTNjMmQ0NzA4MGUzNGEyMTJkM2RhIiwia2V5IjoicGlZaTNvVUJodXd2SHdVVjZyOW06WTY4Z0V4b0tRYWlCSEpKb2NjNFp2USJ9
ℹ️ Configure other nodes to join this cluster: • Copy the following enrollment token and start new Elasticsearch nodes with `bin/elasticsearch --enrollment-token <token>` (valid for the next 30 minutes): eyJ2ZXIiOiI4LjYuMCIsImFkciI6WyIxOTIuMTY4LjMuNzg6OTIwMCJdLCJmZ3IiOiIyNDkzY2VjYWU4ODYyNzc3YjI5YTgyODBjYzFiZjgzMjcyMzgyMzE5YjM3MTNjMmQ0NzA4MGUzNGEyMTJkM2RhIiwia2V5IjoicHlZaTNvVUJodXd2SHdVVjZyOW86eHBBTnc0a09SeWFsSHpXX1plWURZQSJ9
If you're running in Docker, copy the enrollment token and run: `docker run -e "ENROLLMENT_TOKEN=<token>" docker.elastic.co/elasticsearch/elasticsearch:8.6.0`
filter { if [type] == "SuricataIDPS" { date { match => [ "timestamp", "ISO8601" ] } ruby { code => " if event.get('[event_type]') == 'fileinfo' event.set('[fileinfo][type]', event.get('[fileinfo][magic]').to_s.split(',')[0]) end " }
ruby{ code => " if event.get('[event_type]') == 'alert' sp = event.get('[alert][signature]').to_s.split(' group ') if (sp.length == 2) and /\A\d+\z/.match(sp[1]) event.set('[alert][signature]', sp[0]) end end " } }
启动之后会有如下显示。 ✅ Elasticsearch security features have been automatically configured! ✅ Authentication is enabled and cluster connections are encrypted.
ℹ️ Password for the elastic user (reset with `bin/elasticsearch-reset-password -u elastic`): GydWhzxn7_DSKcyibo6r
ℹ️ HTTP CA certificate SHA-256 fingerprint: 7a754432b17957ae2e3752aa8207974689f1595a78b97518d1651cf36f0a3443
ℹ️ Configure Kibana to use this cluster: • Run Kibana and click the configuration link in the terminal when Kibana starts. • Copy the following enrollment token and paste it into Kibana in your browser (valid for the next 30 minutes): eyJ2ZXIiOiI4LjYuMiIsImFkciI6WyIxNzIuMTcuMC4yOjkyMDAiXSwiZmdyIjoiN2E3NTQ0MzJiMTc5NTdhZTJlMzc1MmFhODIwNzk3NDY4OWYxNTk1YTc4Yjk3NTE4ZDE2NTFjZjM2ZjBhMzQ0MyIsImtleSI6IkJUYVB0SWNCLVNiQ0JzOEN3dGJIOjZUNTlRN1FfU2xhenlvbExSclc3LWcifQ==
ℹ️ Configure other nodes to join this cluster: • On this node: ⁃ Create an enrollment token with `bin/elasticsearch-create-enrollment-token -s node`. ⁃ Uncomment the transport.host setting at the end of config/elasticsearch.yml. ⁃ Restart Elasticsearch. • On other nodes: ⁃ Start Elasticsearch with `bin/elasticsearch --enrollment-token <token>`, using the enrollment token that you generated.