When I use the curl commands for my Elasticsearch, it outputs a bunch of garbage and messes up the output of the command. How can I turn that off?
The problem is that the curl command itself is emitting information into the stdout stream.
You can turn that off on a command-by-command basis by just adding a –silent flag on the command like this:
curl 'localhost:9200/_cat/indices?v' --silent
or, if you’re on a bash like shell (e.g., MINGW64 on windows), you can do this to not have to think about it anymore:
alias 'curl'='curl -s'