<?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 Remove spaces in result of format function in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Remove-spaces-in-result-of-format-function/m-p/533096#M150606</link>
    <description>&lt;P&gt;I would like to make use of the format function to modify the results of a sub-search. I'm getting spaces in the output that are causing problems with my search.&lt;/P&gt;&lt;P&gt;I'm using CASE in the result to make the search case sensitive. My format function is:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| format "" "CASE(" "" ")" "OR name=" ""&lt;/LI-CODE&gt;&lt;P&gt;The output of my subsearch is:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;CASE( "User 1" ) OR name= CASE( "User 2" ) OR name= CASE( "User 3" ) &lt;/LI-CODE&gt;&lt;P&gt;The extra spaces around the search term prevents the CASE function from working. Is there any way to remove these spaces?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 15 Dec 2020 06:28:51 GMT</pubDate>
    <dc:creator>BernardEAI</dc:creator>
    <dc:date>2020-12-15T06:28:51Z</dc:date>
    <item>
      <title>Remove spaces in result of format function</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Remove-spaces-in-result-of-format-function/m-p/533096#M150606</link>
      <description>&lt;P&gt;I would like to make use of the format function to modify the results of a sub-search. I'm getting spaces in the output that are causing problems with my search.&lt;/P&gt;&lt;P&gt;I'm using CASE in the result to make the search case sensitive. My format function is:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| format "" "CASE(" "" ")" "OR name=" ""&lt;/LI-CODE&gt;&lt;P&gt;The output of my subsearch is:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;CASE( "User 1" ) OR name= CASE( "User 2" ) OR name= CASE( "User 3" ) &lt;/LI-CODE&gt;&lt;P&gt;The extra spaces around the search term prevents the CASE function from working. Is there any way to remove these spaces?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Dec 2020 06:28:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Remove-spaces-in-result-of-format-function/m-p/533096#M150606</guid>
      <dc:creator>BernardEAI</dc:creator>
      <dc:date>2020-12-15T06:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: Remove spaces in result of format function</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Remove-spaces-in-result-of-format-function/m-p/533122#M150618</link>
      <description>&lt;P&gt;This is a limitation of the the "format" command, I am not aware of anyway to prevent it adding spaces between the column/row separators/boundaries.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Dec 2020 11:00:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Remove-spaces-in-result-of-format-function/m-p/533122#M150618</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2020-12-15T11:00:14Z</dc:date>
    </item>
  </channel>
</rss>

