Split not working in Logstash


(Vivek Sharma) #1

Hi

I am trying to split my log by placing below code in logstash configuration file:

mutate {
		split => { "log_text" => "|" }
	}

The log is breaking perfectly with this.

But when I try to break my logs "\n" instead of "|" , the logs are not being broken. Please see below how I have provided it in mutate statement.

mutate {
		split => { "log_text" => "\n" }
	}

My objective is to break the log_text on every occurrence of "\n" pattern found in my log.

Can anyone please guide me on this.

Thanks


(system) #2

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