In elasticsearch logs dir. it depends on how you installed it. Documentation says where they are depending on the package you installed.
Re format your code, logs or configuration files:
Use </>
icon as explained in this guide and not the citation button. It will make your post more readable.
Or use markdown style like:
```
CODE
```
This is the icon to use if you are not using markdown format:
There's a live preview panel for exactly this reasons.