the ES config is set up to localhost. The web app is called via localhost and in this case we can create the logs. But we don't get the logs If the web app is called via the public IP. Why is that?
The ES config is set up to the public IP and can be externally accessed via the public IP:9200.
I can create the logs in ES if I run the console app. I don't create any logs if I run web app using the same web.config. Is this a CORS issue or anything else?
I don't know why it's difficult to understand the question, I think it was clear enough...
Ok, let me describe the situation again:
sutiation N1: IF ES is configured to localhost and my web app is configured to send the logs to ES, then
subsituation A: When I run the web app locally (localhost) it does creates the logs in the ES
subsituation B: When I run the web app using public IP, it does not create the logs in the ES.
The question is: WHY?
sutiation N2:
If I change the ES's config to the private IP then if I go to public_ip:9200/log/_search I can see my logs from the internet
Next step: I reconfigure the console app to send the logs to public_ip:9200
and the console app successfully sends the logs
BUT
If I reconfigure the web app, using the same config as the console app used, then I dont get the logs in the ES.
The question is: WHY?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.