GM.
GM.

Reputation: 141

Why my Linux version of logstash not writing output file by linefeed

I have my windows version which writes logstash json output as file capturing each object by line by line. But same in cents, working fine but its writing all the outputs in a single line.. No carriage return(enter)

Eg:

Expected {Name: abc, class: fifth}

{Name: abc, class: six}

{Name: abc, class: seven}

But coming as {Name: abc, class:fifth}{Name: abc, class:six}{Name: abc, class:seven}

Upvotes: -3

Views: 117

Answers (1)

Kulasangar
Kulasangar

Reputation: 9444

In order to have a proper formatted output in logstash for debugging purposes, you could simply use stdout. ie:

output {
  stdout { codec => rubydebug } <--- you could change this to your need
}

stdout synopsis

Upvotes: 1

Related Questions