I'm trying to run the ELK for NGINX Plus (JSON) example on a Windows 10 machine, and am hung up on finding a Windows equivalent to the following unix command for ingesting the log data into Elasticsearch:
cat nginxplus_json_logs | <path_to_logstash_root_dir>/bin/logstash -f nginxplus_json_logstash.conf
From this question and this question I understand that type
can perform some of the same actions as cat
in unix. I tried the exact same command replacing cat
with type
, which unsurprisingly didn't work. Here is my command and response:
type nginxplus_json_logs.txt | ../logstash-2.1.1/bin/logstash -f nginxplus_json_logstash.conf
'..' is not recognized as an internal or external command,
operable program or batch file.
Is it possible to replicate that action using the type
command? If so, how do I need to change the way I have my command formatted?