https://logz.io/sample-data
.sample-data
.curl
, however, wget
works well returning a file containing proper contents.curl
?curl
as the URL endpoint is redirected (301) to another endpoint (https://s3.amazonaws.com/logzio-elk/apache-daily-access.log
); sending a request with HEAD method (-I
) to the specified URL:curl
does not follow HTTP redirections by default, you need to tell curl
to do so using the -L
/--location
option:wget
follows redirections by default, you're getting to the eventual URL with wget
as-is.