Elasticsearch and Curl

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'

Thanks to this post on stackoverflow for the solution above.

Quick DNS

Here’s a quick and easy way to get a domain name to resolve to an IP.

Type in the IP address and follow it with an .xip.io like this:

$ ping

Pinging [] with 32 bytes of data:
Reply from bytes=32 time<1ms TTL=128
Reply from bytes=32 time<1ms TTL=128