<?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 queries to insert special characters in field values in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/splunk-queries-to-insert-special-characters-in-field-values/m-p/213866#M187949</link>
    <description>&lt;P&gt;see answers of jeffland  above it ok or &lt;BR /&gt;
you can also try like :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;....| eval group="\""+group+"\""
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 05 Nov 2015 10:51:08 GMT</pubDate>
    <dc:creator>fdi01</dc:creator>
    <dc:date>2015-11-05T10:51:08Z</dc:date>
    <item>
      <title>splunk queries to insert special characters in field values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/splunk-queries-to-insert-special-characters-in-field-values/m-p/213864#M187947</link>
      <description>&lt;P&gt;How to insert apostrophes in all field values &lt;/P&gt;

&lt;P&gt;Results:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;group         count
10.243.200.14   1
10.243.200.29   1
10.243.200.67   1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;expected o/p:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; group          count
"10.243.200.14" 1
"10.243.200.29" 1
"10.243.200.67" 1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 05 Nov 2015 08:11:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/splunk-queries-to-insert-special-characters-in-field-values/m-p/213864#M187947</guid>
      <dc:creator>splunker12er</dc:creator>
      <dc:date>2015-11-05T08:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: splunk queries to insert special characters in field values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/splunk-queries-to-insert-special-characters-in-field-values/m-p/213865#M187948</link>
      <description>&lt;P&gt;If you want them to be in the data (i.e. for later csv export or further calculations), you can add quotes like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your search | eval group="\"".group."\""
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Keep in mind that this changes the actual value of your field. If you simply want to display quotes around your fields in the table, use &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Fieldformat"&gt;fieldformat&lt;/A&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your search | fieldformat group="\"".group."\""
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will only change how your data is rendered in the table, not the actual field values.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2015 08:22:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/splunk-queries-to-insert-special-characters-in-field-values/m-p/213865#M187948</guid>
      <dc:creator>jeffland</dc:creator>
      <dc:date>2015-11-05T08:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: splunk queries to insert special characters in field values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/splunk-queries-to-insert-special-characters-in-field-values/m-p/213866#M187949</link>
      <description>&lt;P&gt;see answers of jeffland  above it ok or &lt;BR /&gt;
you can also try like :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;....| eval group="\""+group+"\""
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 05 Nov 2015 10:51:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/splunk-queries-to-insert-special-characters-in-field-values/m-p/213866#M187949</guid>
      <dc:creator>fdi01</dc:creator>
      <dc:date>2015-11-05T10:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: splunk queries to insert special characters in field values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/splunk-queries-to-insert-special-characters-in-field-values/m-p/213867#M187950</link>
      <description>&lt;P&gt;There are a kazillion ways to do it:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex mode=sed field=group "s/(.*)/\"\1\"/"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 05 Nov 2015 13:31:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/splunk-queries-to-insert-special-characters-in-field-values/m-p/213867#M187950</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-11-05T13:31:41Z</dc:date>
    </item>
  </channel>
</rss>

