<?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: Handling spaces in field values in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Handling-spaces-in-field-values/m-p/686115#M234096</link>
    <description>&lt;P&gt;URLs with spaces in them must be encoded.&amp;nbsp; Use the &lt;FONT face="courier new,courier"&gt;urlencode&lt;/FONT&gt; command available with the Webtools Add-on (&lt;A href="https://splunkbase.splunk.com/app/4146" target="_blank"&gt;https://splunkbase.splunk.com/app/4146&lt;/A&gt;).&lt;/P&gt;</description>
    <pubDate>Wed, 01 May 2024 18:39:14 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2024-05-01T18:39:14Z</dc:date>
    <item>
      <title>Handling spaces in field values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Handling-spaces-in-field-values/m-p/686113#M234094</link>
      <description>&lt;H2&gt;Description&lt;/H2&gt;&lt;P&gt;How can I produce a URL in an alert email that uses field values, either by in-line results or in the body of the email. When an alert is triggered an email is sent with field dashboard_url. For projects with no spaces in the name, the URL is clickable. If there is a space, the URL contains only up to the space and is broken.&lt;/P&gt;&lt;H4&gt;Sample query&lt;/H4&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults format=json data="[{\"project\":\"projectA - Team A\"},{\"project\":\"projectB\"}]"
| eval dashboard_url="https://internal.com:8000/en-US/app/search/dash?form.q_project=".project.""&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Result: &lt;A href="https://internal.com:8000/en-US/app/search/dash?form.q_project=projectA" target="_self"&gt;https://internal.com:8000/en-US/app/search/dash?form.q_project=projectA&lt;/A&gt; - Team A&lt;/P&gt;&lt;H2&gt;Workarounds attempted&lt;/H2&gt;&lt;P&gt;I tried building the dashboard_url in the email body using results.project. The same condition occurs, projects with spaces get a broken link.&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2024 18:29:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Handling-spaces-in-field-values/m-p/686113#M234094</guid>
      <dc:creator>Badger</dc:creator>
      <dc:date>2024-05-01T18:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: Handling spaces in field values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Handling-spaces-in-field-values/m-p/686115#M234096</link>
      <description>&lt;P&gt;URLs with spaces in them must be encoded.&amp;nbsp; Use the &lt;FONT face="courier new,courier"&gt;urlencode&lt;/FONT&gt; command available with the Webtools Add-on (&lt;A href="https://splunkbase.splunk.com/app/4146" target="_blank"&gt;https://splunkbase.splunk.com/app/4146&lt;/A&gt;).&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2024 18:39:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Handling-spaces-in-field-values/m-p/686115#M234096</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2024-05-01T18:39:14Z</dc:date>
    </item>
  </channel>
</rss>

