Hello Guys
I have configured the Kibana, APM, elasticsearch, For APM I have created a domain https://example.com as APM Agent in flask application, When I run the application on development environment logs are getting showing inside APM tab, but in production environment I'm not seeing any logs.
For Kibana
server.host: "0.0.0.0"
elasticsearch.hosts: http://IP:PORT
elasticsearch.ssl.certificateAuthorities: ["ca.pem"]
For APM Server
host: "0.0.0.0:8200"
output.elasticsearch:
hosts: ["http://IP:9200"]
ssl.certificate_authorities: ["ca.pem"]
For Elasticsearch
network.host: IP
discovery.seed_hosts: ["IP"]
For Flask APM Agent:
current_app.config['ELASTIC_APM'] = {
# Set required service name. Allowed characters:
# a-z, A-Z, 0-9, -, _, and space
'SERVICE_NAME': app_name,
# Use if APM Server requires a token
'SECRET_TOKEN': '',
# Set custom APM Server URL (default: http://localhost:8200)
'SERVER_URL': "https://example.com",
'LOGGING': True,
'DEBUG': True,
'VERIFY_SERVER_CERT': False,
}
apm = ElasticAPM(current_app, logging=True)
apm.init_app(current_app, service_name=app_name, secret_token='')
Please let me know where I need to make correction to make it work?