Stdin AND Windows


(Mario van Gemert) #1

In order to read my files I always use a path in my input section, like this:
input {
file {
path => ["D:\ELK-5.3.0\logstash-5.3.0\filename.csv"]
start_position => "beginning"
sincedb_path => "NUL"
}
}

This works fine, but how do I read this specific file when using only the stdin:
input {
stdin {
}
}

I receive a: "The stdin plugin is now waiting for input:" message, but how do I read my file now? I am using Windows.


(Paris Mermigkas) #2

The stdin stands for standard input, which is listening on your console window for input (anything you type there would be processed by logstash).

There is no easy way to directly read a file with a stdin input, expect from opening the file with a text editor and copy-paste lines in the terminal.

May I ask why do you want to use stdin for this?


(Mario van Gemert) #3

Just to be more flexible when selecting different files. So, to prevent me from having to edit my .conf input section each time I select a different file. But, if this is not working then it is not a problem. I just need to edit my .conf. Thnx!


(system) #4

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.