Unable to read the txt file through Logstash

Hey Badger, it's working now thanks for your help.

path => ["C:/Users/skkoganti/Documents/log/EDI Log-2019-05-27.txt"]

after given the .txt at end of the file then only it's working.

but i have one more question like i don't see column names on kibana whatever i had in my .txt file.

This is my sample .txt file

Time|Application|Message
2019-05-27 08:59:30|b_GetOtherExcelData_BEEM|Started
2019-05-27 08:59:33|b_GetOtherExcelData_BEEM|2019 Spring Bookings.xlsx Copied to \pneus.touchette\documents\EDI\BEEM\Development\Outbound\Wholesale\toSend
2019-05-27 08:59:33|b_GetOtherExcelData_BEEM|Successfully Complete
2019-05-27 13:07:12|ProcessContiGold_contiGOLD|Started

logstash output.

[2020-10-06T08:57:04,017][INFO ][logstash.agent ] Pipelines running {:count=>1, :running_pipelines=>[:main], :non_running_pipelines=>}
[2020-10-06T08:57:04,436][INFO ][logstash.agent ] Successfully started Logstash API endpoint {:port=>9600}
{
"path" => "C:/Users/skkoganti/Documents/log/EDI Log-2019-05-27.txt",
"message" => "2019-05-27 08:59:30|b_GetOtherExcelData_BEEM|Started\r",
"host" => "GTAPIDEV",
"@version" => "1",
"@timestamp" => 2020-10-06T12:57:04.598Z
}
{
"path" => "C:/Users/skkoganti/Documents/log/EDI Log-2019-05-27.txt",
"message" => "2019-05-27 13:23:42|ProcessContiGold_contiGOLD|Started\r",
"host" => "GTAPIDEV",
"@version" => "1",
"@timestamp" => 2020-10-06T12:57:04.602Z
}
{
"path" => "C:/Users/skkoganti/Documents/log/EDI Log-2019-05-27.txt",
"message" => "2019-05-27 13:54:21|SendContiGOLD_contiGOLD|Started\r",
"host" => "GTAPIDEV",
"@version" => "1",
"@timestamp" => 2020-10-06T12:57:04.605Z

=> i want to read column names aswell, Can you help me badger.

Thanks,
Suresh Koganti.