<?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: When adding alert suppression fields with spaces in them should we use quotes around the field name? in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/When-adding-alert-suppression-fields-with-spaces-in-them-should/m-p/613882#M14280</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/98855"&gt;@abroglesc&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;at first, as&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;said, if you have spaces in a field name, you have to use quotes, and in my experience it isn't a good idea to use spaces in field names, eventually you could rename them at the end of your search in column displaying.&lt;/P&gt;&lt;P&gt;Anyway,&amp;nbsp;Taking always&amp;nbsp;"Source IP" when present or&amp;nbsp;"Destination IP" if the first isn't present, you could use eval coalesce:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval IP=coalesce("Source IP","Destination IP")&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Wed, 21 Sep 2022 06:52:21 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2022-09-21T06:52:21Z</dc:date>
    <item>
      <title>When adding alert suppression fields with spaces in them should we use quotes around the field name?</title>
      <link>https://community.splunk.com/t5/Alerting/When-adding-alert-suppression-fields-with-spaces-in-them-should/m-p/613819#M14274</link>
      <description>&lt;P&gt;Let's say we have an alert which has a few field like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="ruby"&gt;| search &amp;lt;INSERT_RANDOM_BASE_QUERY&amp;gt;
| table src_ip, _time, dest_ip
| rename _time as "Time", src_ip as "Source IP", dest_ip as "Destination IP"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And we want to suppress on "Source IP" and "Destination IP" being the same. Should our suppress fields look like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="ruby"&gt;alert.suppress.fields = "Source IP","Destination IP"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="ruby"&gt;alert.suppress.fields = Source IP,Destination IP&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2022 18:43:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/When-adding-alert-suppression-fields-with-spaces-in-them-should/m-p/613819#M14274</guid>
      <dc:creator>abroglesc</dc:creator>
      <dc:date>2022-09-20T18:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: When adding alert suppression fields with spaces in them should we use quotes around the field name?</title>
      <link>https://community.splunk.com/t5/Alerting/When-adding-alert-suppression-fields-with-spaces-in-them-should/m-p/613829#M14275</link>
      <description>&lt;P&gt;Use quotation marks.&amp;nbsp; Without them you have 3 fields, one of which is repeated.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2022 19:48:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/When-adding-alert-suppression-fields-with-spaces-in-them-should/m-p/613829#M14275</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-09-20T19:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: When adding alert suppression fields with spaces in them should we use quotes around the field name?</title>
      <link>https://community.splunk.com/t5/Alerting/When-adding-alert-suppression-fields-with-spaces-in-them-should/m-p/613882#M14280</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/98855"&gt;@abroglesc&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;at first, as&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;said, if you have spaces in a field name, you have to use quotes, and in my experience it isn't a good idea to use spaces in field names, eventually you could rename them at the end of your search in column displaying.&lt;/P&gt;&lt;P&gt;Anyway,&amp;nbsp;Taking always&amp;nbsp;"Source IP" when present or&amp;nbsp;"Destination IP" if the first isn't present, you could use eval coalesce:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval IP=coalesce("Source IP","Destination IP")&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2022 06:52:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/When-adding-alert-suppression-fields-with-spaces-in-them-should/m-p/613882#M14280</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-09-21T06:52:21Z</dc:date>
    </item>
  </channel>
</rss>

