Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to insert new lines in format field for message formatting #4

Open
udaysagar2177 opened this issue Oct 17, 2016 · 2 comments
Open

Comments

@udaysagar2177
Copy link

udaysagar2177 commented Oct 17, 2016

Hi,

For better viewing my message in Slack, I want to insert new lines into my message/format field of logstash-output-slack plugin. But when I do something like this

output {
  slack {
    ...
    format => "line 1 \n line 2"
    ...
  }
}

I am getting a message in my slack as line 1 \n line 2 but not as two different lines. I think, the format field is being received as line 1 \\n line 2 by your plugin. Can you do anything to fix that? Thanks!

@Stephan202
Copy link

Sounds like this is caused by elastic/logstash#1645.

@jeffrey-e
Copy link

That is correct :) It is working when config.support_escapes is set to true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants