I'm trying to configure the slack notification but i'm always getting the following error message:
The YAML settings are invalid, please check your syntax
This error message is created after adding the message_default: from: xpack to:elk
xpack.notification.slack:
account:
monitoring:
url: https://hooks.slack.com/services/
from: xpack
to: elk
Please don't post images of text. They're hard to search and can't be read by those of us using a screenreader. Instead, please use the </> button to format the text in your post.
Note that YAML is whitespace-sensitive, so you need to make sure that the keys all line up. In the screenshot you shared the from and to keys are not in line with each other.
No problem. However, the edit you have made didn't fix it. You need to replace the screenshot with the actual text, using the </> button to format it to look like code and to preserve whitespace. Check the preview window on the right to make sure it looks good.
The source of your post will look something like this:
Ok, that's the right button now, but it's still formatted wrong for me. I think it's all ended up on one line for some reason. Can you paste the YAML file into the box, check that it is split across multiple lines and includes all the spaces, and then select everything you just pasted and hit </>? It'll look like this in the preview:
I was just giving up and found it well bloody hell
Seems like i first needed to select the text to have in that bloc.
Can you please check and confirm?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.