Replies: 1 comment
|
@josmirpa The Docker Compose configuration maps it as: So:
For example, in Python using the Elasticsearch client: from elasticsearch import Elasticsearch
es = Elasticsearch(
"http://127.0.0.1:64298"
)
print(es.info())Or with curl http://127.0.0.1:64298If security is enabled (which is the default in newer T-Pot releases), you'll need to authenticate: from elasticsearch import Elasticsearch
es = Elasticsearch(
"https://127.0.0.1:64298",
basic_auth=("username", "password"),
verify_certs=False, # or provide the CA certificate
)Without credentials, Elasticsearch will return a One thing to note is that port If this solves your problem, feel free to mark it as the accepted answer so others can find it easily. |
Uh oh!
There was an error while loading. Please reload this page.
Hi, I would like to know which port ElasticSearch communicates through as I need to query ElasticSearch from python.
Thanks!
All reactions