LukeMurphey / splunk-website-monitoring

A website for monitoring web applications
MIT License
44 stars 20 forks source link

Content matching always fails on newlined content #25

Open noysherer opened 5 years ago

noysherer commented 5 years ago

When a user adds a new input with content checking, the content check will always fail if the content contains new lines.

This issue seems to happen because the splunk input screen automatically substitutes \n with a single whitespace inside the input textbox.

I believe this can be solved in two ways:

  1. Either fix the input box substitution of newlines
  2. Substitute the received response newlines to whitespaces specifically for the content checking code