<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Splunk Alert to Slack : Is it possible to have certain table column (field) passed to the Slack alert as an array? in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Splunk-Alert-to-Slack-Is-it-possible-to-have-certain-table/m-p/636842#M14958</link>
    <description>&lt;P&gt;You potentially have a couple of options - you might be able to include a csv of the results with the trigger - you could list all the results so that they appear in the first row&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| stats list(*) as *&lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 31 Mar 2023 08:31:23 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2023-03-31T08:31:23Z</dc:date>
    <item>
      <title>Splunk Alert to Slack : Is it possible to have certain table column (field) passed to the Slack alert as an array?</title>
      <link>https://community.splunk.com/t5/Alerting/Splunk-Alert-to-Slack-Is-it-possible-to-have-certain-table/m-p/608837#M14131</link>
      <description>&lt;P&gt;Hi here, I am trying to build a Splunk alert with Slack, to pass a table column of value as an array of value, eg.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Result Table&lt;/P&gt;
&lt;P&gt;===========&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="50%"&gt;Field1&lt;/TD&gt;
&lt;TD width="50%"&gt;Field2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50%"&gt;A1&lt;/TD&gt;
&lt;TD width="50%"&gt;B1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;A2&lt;/TD&gt;
&lt;TD&gt;B2&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Expected Alert Message&lt;/P&gt;
&lt;P&gt;===========&lt;/P&gt;
&lt;P&gt;Field1 : ["A1", "A2"]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am currently referencing the following documentation, with the result token &lt;STRONG&gt;$result.Field1$&lt;/STRONG&gt;. However, it shows only the value on the 1st row, ie.&amp;nbsp;&lt;STRONG&gt;Field1 : A1&lt;/STRONG&gt;. I wonder is it possible to have the alert message done, with an array of value instead ? Thanks in advance !&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.1/Alert/EmailNotificationTokens" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/Splunk/8.2.1/Alert/EmailNotificationTokens&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/splunk/slack-alerts/issues/30" target="_blank" rel="noopener"&gt;https://github.com/splunk/slack-alerts/issues/30&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Aug 2022 15:28:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Splunk-Alert-to-Slack-Is-it-possible-to-have-certain-table/m-p/608837#M14131</guid>
      <dc:creator>vincentgoh98</dc:creator>
      <dc:date>2022-08-09T15:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Alert to Slack : Is it possible to have certain table column (field) passed to the Slack alert as an array?</title>
      <link>https://community.splunk.com/t5/Alerting/Splunk-Alert-to-Slack-Is-it-possible-to-have-certain-table/m-p/636835#M14957</link>
      <description>&lt;P&gt;I am also facing the same issue.&amp;nbsp;Though my search query returns more than 1 rows of results, only the first row of result is taken by default and sent as alert notification in my Slack channel from Splunk.&lt;/P&gt;&lt;P&gt;But in Alert trigger actions for Email notification, we have the options to show all the results as a table format. If the same feature is available for Slack notification, it will be useful and more user readable.&lt;/P&gt;&lt;P&gt;Could anyone please help on finding a solution to display all the rows of results in Slack notification?&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2023 07:27:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Splunk-Alert-to-Slack-Is-it-possible-to-have-certain-table/m-p/636835#M14957</guid>
      <dc:creator>akarivaratharaj</dc:creator>
      <dc:date>2023-03-31T07:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Alert to Slack : Is it possible to have certain table column (field) passed to the Slack alert as an array?</title>
      <link>https://community.splunk.com/t5/Alerting/Splunk-Alert-to-Slack-Is-it-possible-to-have-certain-table/m-p/636842#M14958</link>
      <description>&lt;P&gt;You potentially have a couple of options - you might be able to include a csv of the results with the trigger - you could list all the results so that they appear in the first row&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| stats list(*) as *&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 31 Mar 2023 08:31:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Splunk-Alert-to-Slack-Is-it-possible-to-have-certain-table/m-p/636842#M14958</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-03-31T08:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Alert to Slack : Is it possible to have certain table column (field) passed to the Slack alert as an array?</title>
      <link>https://community.splunk.com/t5/Alerting/Splunk-Alert-to-Slack-Is-it-possible-to-have-certain-table/m-p/638327#M14976</link>
      <description>&lt;P&gt;I have tried by using&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| stats list(*) as *&lt;/LI-CODE&gt;&lt;P&gt;But this had again gave me only the first row values in my alert notification on Slack.&lt;/P&gt;&lt;P&gt;Can you please let me know how to include the results from CSV to Slack alert notification?&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2023 09:26:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Splunk-Alert-to-Slack-Is-it-possible-to-have-certain-table/m-p/638327#M14976</guid>
      <dc:creator>akarivaratharaj</dc:creator>
      <dc:date>2023-04-03T09:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Alert to Slack : Is it possible to have certain table column (field) passed to the Slack alert as an array?</title>
      <link>https://community.splunk.com/t5/Alerting/Splunk-Alert-to-Slack-Is-it-possible-to-have-certain-table/m-p/638358#M14977</link>
      <description>&lt;P&gt;Please explain because list(*) as * puts all the results into the first row are multi-value fields, which is what you asked for. Does the Slack alert somehow convert this to something else?&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2023 10:26:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Splunk-Alert-to-Slack-Is-it-possible-to-have-certain-table/m-p/638358#M14977</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-04-03T10:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Alert to Slack : Is it possible to have certain table column (field) passed to the Slack alert as an array?</title>
      <link>https://community.splunk.com/t5/Alerting/Splunk-Alert-to-Slack-Is-it-possible-to-have-certain-table/m-p/638365#M14978</link>
      <description>&lt;P&gt;Yes using "&lt;SPAN&gt;list(*)", making the results of the&amp;nbsp;search query to show in one single row (while running the query in a search window). Whereas when the alert is triggered and notified to a Slack channel, the notification message has only the top values of the respective fields from the list.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2023 10:40:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Splunk-Alert-to-Slack-Is-it-possible-to-have-certain-table/m-p/638365#M14978</guid>
      <dc:creator>akarivaratharaj</dc:creator>
      <dc:date>2023-04-03T10:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Alert to Slack : Is it possible to have certain table column (field) passed to the Slack alert as an array?</title>
      <link>https://community.splunk.com/t5/Alerting/Splunk-Alert-to-Slack-Is-it-possible-to-have-certain-table/m-p/638757#M14981</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp; Could you please let me know how to get/attach the results from a CSV file to a slack notification with all the rows of the results?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2023 05:37:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Splunk-Alert-to-Slack-Is-it-possible-to-have-certain-table/m-p/638757#M14981</guid>
      <dc:creator>akarivaratharaj</dc:creator>
      <dc:date>2023-04-05T05:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Alert to Slack : Is it possible to have certain table column (field) passed to the Slack alert as an array?</title>
      <link>https://community.splunk.com/t5/Alerting/Splunk-Alert-to-Slack-Is-it-possible-to-have-certain-table/m-p/638761#M14982</link>
      <description>&lt;P&gt;It doesn't look like this is possible for webhook notifications. Have you tried triggering for every result, that way you might be able to send every row (one at a time)?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2023 06:29:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Splunk-Alert-to-Slack-Is-it-possible-to-have-certain-table/m-p/638761#M14982</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-04-05T06:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Alert to Slack : Is it possible to have certain table column (field) passed to the Slack alert as an array?</title>
      <link>https://community.splunk.com/t5/Alerting/Splunk-Alert-to-Slack-Is-it-possible-to-have-certain-table/m-p/638948#M14985</link>
      <description>&lt;P&gt;Yeah I am aware of the setting - "&lt;SPAN&gt;Trigger Conditions -&amp;gt; F&lt;/SPAN&gt;or each result". If the results are with 2 or 3 rows then it's fine. But what if the results are 10's and 20's. This will create a loads of alert notification entry in the specific channel. Also it won't be effective for users' readable.&lt;/P&gt;&lt;P&gt;My alert is set to trigger for every 15 minutes. This will create more entries for an entire day.&lt;/P&gt;&lt;P&gt;Is there any other way to achieve this?&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2023 05:37:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Splunk-Alert-to-Slack-Is-it-possible-to-have-certain-table/m-p/638948#M14985</guid>
      <dc:creator>akarivaratharaj</dc:creator>
      <dc:date>2023-04-06T05:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Alert to Slack : Is it possible to have certain table column (field) passed to the Slack alert as an array?</title>
      <link>https://community.splunk.com/t5/Alerting/Splunk-Alert-to-Slack-Is-it-possible-to-have-certain-table/m-p/638958#M14986</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/246897"&gt;@vincentgoh98&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/51519"&gt;@akarivaratharaj&lt;/a&gt;&amp;nbsp; One of the ways I handled this for my Slack notifications from Splunk was to create a field with the required columns and then mvcombine them as a single field value and use this field in the alert.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;It will list down items in your slack.&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;You can try something like this.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults count=20
| eval rand =(random() % 20)+2
|  eval field_a="A-"+rand
|  eval field_b="B-"+rand
| stats count by field_a field_b
| eval field_ab_count=field_a+" , "+field_b+" , "+count
| fields field_ab_count
| mvcombine field_ab_count&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Gr0und_Z3r0_0-1680762344554.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/24808i5C4FA39962A7A05E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Gr0und_Z3r0_0-1680762344554.png" alt="Gr0und_Z3r0_0-1680762344554.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;~ If the reply helps, an upvote would be appreciated&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2023 06:25:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Splunk-Alert-to-Slack-Is-it-possible-to-have-certain-table/m-p/638958#M14986</guid>
      <dc:creator>Gr0und_Z3r0</dc:creator>
      <dc:date>2023-04-06T06:25:55Z</dc:date>
    </item>
  </channel>
</rss>

