Log Threshold - Alert Body

@erikg I did the same . But my details are coming as the row .

pls see below.
If i move all my headings such as Destination IP address and Destination APP, all data messed up.

|||
|--------------| ------------|
| **Blocked Traffic Information** | - |
{{#context.hits}}
|-**Destination IP Address**| {{_source.v2.private.dst_ip}}
|**Destination Application Name**|{{_source.v2.private.dst_labels.app}}
|**Destination Port**| {{_source.v2.private.dst_port}}
|**Destination Protocol**| {{_source.v2.private.proto}}
{{/context.hits}}

Ah, I think actually you need to include your heading AFTER {{#context.hits}}

{{#context.hits}}
Blocked Traffic Information -
-Destination IP Address {{_source.v2.private.dst_ip}}
Destination Application Name {{_source.v2.private.dst_labels.app}}
Destination Port {{_source.v2.private.dst_port}}
Destination Protocol {{_source.v2.private.proto}}
{{/context.hits}}

I think this what you were trying to do^?

@erikg Hey,

I need the presentation be vertical .


I want to show data in simple table format with column as like as screenshot.

If you see the screenshot from 1 day ago , everything in email is coming as row.

Best,
Narges

I m sending the observed data in the e-mail @erikg .
Every box has the data for on query that matched.
Could you pls also advise why some are coming as blue? It is the new issue!

Blocked Traffic Information
Destination IP Address Destination Application Name Destination Port Destination Protocol
{{#context.hits}}
{{_source.v2.private.dst_ip}} {{_source.v2.private.dst_labels.app}} {{_source.v2.private.dst_port}} {{_source.v2.private.proto}}
{{/context.hits}}

Like this?
As for the blue, I have not seen that before.

@erikg , Ys like that. And when i added everything just dumped in the email with one simple heading . :expressionless:

Here's how I did that:

||||||
|-| -|-|-|-|
| **Blocked Traffic Information** | 
|**Destination IP Address**|**Destination Application Name**| **Destination Port**|**Destination Protocol**|
{{#context.hits}}
{{_source.v2.private.dst_ip}} | {{_source.v2.private.dst_labels.app}} | {{_source.v2.private.dst_port}} | {{_source.v2.private.proto}} |
{{/context.hits}}

If this is same markdown you used then it might be a limitation.

Thanks,

@erikg WOW! You fixed it. It is so clean and nice. Thanks so much! :star_struck: :star_struck:

@erikg can you please explain the logic so I can learn?

Hey, sorry I barely understand the logic but I learned you can two methods to do markdown:

Method 1:

Syntax Description
Header Title
Paragraph Text
| Syntax | Description |
| - | - |
| Header | Title |
| Paragraph | Text |

OR

Method 2:

Syntax Description
Header Title
Paragraph Text
|||
| - | - |
| Syntax | Description |
| Header | Title |
| Paragraph | Text |

For both methods, your pipes | are your columns. You can specify how many you want.
Glad you were able to do it!

Thanks @erikg :pray:

1 Like

@erikg , Hello

I could deploy the solution and it works as expected. The only thing that I see there is one extra bullet created in the e-mail notification which I dont know why is that. The person who implemented the body content of e-mail in PROD is using MAC computer and Chrome and just copying from my content . I use windows surface machine.

Do you think this is why we get extra bullet?

that individual is copying my template from pre prod and we see extra bullet which I don't have it in preprod with same body content.

Hey @NShrek , I actually haven't seen that before. Perhaps share your body content?

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