- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2023 09:49 AM
Hi,
We are using Agent-Client-Collector for Monitoring.
The Checks-Output looks like this:
Unfortunately, the line breaks are not displayed in the event.
Therefore, I tried to insert "\n" or "\\n" to force a line break in the alert description field. It doesn't work either.
Any ideas? thanks in advance.
Thomas
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2023 04:49 AM - edited 07-25-2023 05:01 AM
I wanted to do a similar thing on the alert table. I have written a BR
var text = current.description;
var new_text = text.replace(/\\n/g, '\n');
gs.log("New Decription " + new_text);
current.description = new_text;
The output looks right to me.
Do mark it helpful or accept the answer if it solves the issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2023 04:49 AM - edited 07-25-2023 05:01 AM
I wanted to do a similar thing on the alert table. I have written a BR
var text = current.description;
var new_text = text.replace(/\\n/g, '\n');
gs.log("New Decription " + new_text);
current.description = new_text;
The output looks right to me.
Do mark it helpful or accept the answer if it solves the issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2023 04:53 AM
thanks, will try this