summary_table_fields alignment options
@Qmando @Dmitry1987
Is there any options to properly align the format of the alert email output. Can I add some arbitrary content? What I'd like to do is to wrap the summary table using "```" so the message on email looks much nicer. I have attached the Zip file output for reference.
summary_table_fields:
- srx-source-address
- srx-source-port
- srx-destination-address
- srx-destination-port
+-----------------+-----------------+-----------------+----------------+-------+
| srx-source- | srx-source-port | srx- | srx- | count |
| address | | destination- | destination- | |
| | | address | port | |
+=================+=================+=================+================+=======+
| 46.36.36.30 | 56453 | 170.200.72.4 | 501 | 1 |
+-----------------+-----------------+-----------------+----------------+-------+
| 46.36.36.30 | 56453 | 170.200.72.4 | 155 | 1 |
+-----------------+-----------------+-----------------+----------------+-------+
| 46.36.36.30 | 56453 | 170.200.72.4 | 17055 | 1 |
+-----------------+-----------------+-----------------+----------------+-------+
| 46.36.36.30 | 56453 | 170.200.72.4 | 95 | 1 |
+-----------------+-----------------+-----------------+----------------+-------+
| 46.36.36.30 | 56453 | 170.200.72.4 | 6432 | 1 |
+-----------------+-----------------+-----------------+----------------+-------+
| 46.36.36.30 | 56453 | 170.200.72.4 | 881 | 1 |
Hi, I would convert this into HTML table, but it will need implementation in code again :D as all my solutions... look, there's not much chance you'll be able to properly format this in a mail, because fonts are different and browsers display things different, etc'
This type of table is destined to be displayed ugly on the web, as long as it's not linux terminal display...
You can try to force "markdown" format somehow in your email if it's possible.. maybe there's an HTML tag to wrap around this that will CSS format it like "code" (the ` you want to use).
I think try a few HTML tags, search for "HTML tag for markdown code" or something. No idea if exists though.
@Qmando
I'm using the below conditions to alert the email output in summary table field format. In the email output body I would like to add some content . I tried to add the content next to the alert_text: | but its not working . Is there any options to add some content in the email body with summary_field ?
alert_text_type: alert_text_only
alert_text: |
summary_table_fields:
- srx-source-address
- srx-destination-address
- srx-destination-port
I have the same problem in slack. Have you found a solution?