<?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: Quoted escape characters when searching a field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Quoted-escape-characters-when-searching-a-field/m-p/185480#M53458</link>
    <description>&lt;P&gt;Use a REGEX to parse the data.  Put this in your transforms.conf file instead of DELIMS:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;[&amp;lt;transformName&amp;gt;]&lt;BR /&gt;
REGEX = \"(?&amp;lt;EventTime&amp;gt;.*?)\",\s\"(?&amp;lt;Level&amp;gt;.*?)\",\s\"(?&amp;lt;Field3&amp;gt;.*?)\",\s\"(?&amp;lt;Field4&amp;gt;.*?)\",\s\"(?&amp;lt;Field5&amp;gt;.*?)\"&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 19 Dec 2013 17:51:53 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2013-12-19T17:51:53Z</dc:date>
    <item>
      <title>Quoted escape characters when searching a field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Quoted-escape-characters-when-searching-a-field/m-p/185479#M53457</link>
      <description>&lt;P&gt;"2013-12-19 11:13:23", "[INFO]", "30927", "MainProcess", "SSMITH"&lt;/P&gt;

&lt;P&gt;My data is coming into Splunk in this format, and when I select to look at it in raw form this is an example of one of my logs.  The issue I am having is that when I want to search for a field I have to search for it in the following way or it wont show up: &lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;levelname="\"[INFO]\""   &lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;I need the initial quotes around each field because some of the fields may have commas in them and the delimiter is also a comma.  Is there a config I can use so I don't have to escape the quotes when searching for a field value?  Or any advice besides changing the delimiter to fix the issue?&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2013 16:32:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Quoted-escape-characters-when-searching-a-field/m-p/185479#M53457</guid>
      <dc:creator>JoeSco27</dc:creator>
      <dc:date>2013-12-19T16:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: Quoted escape characters when searching a field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Quoted-escape-characters-when-searching-a-field/m-p/185480#M53458</link>
      <description>&lt;P&gt;Use a REGEX to parse the data.  Put this in your transforms.conf file instead of DELIMS:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;[&amp;lt;transformName&amp;gt;]&lt;BR /&gt;
REGEX = \"(?&amp;lt;EventTime&amp;gt;.*?)\",\s\"(?&amp;lt;Level&amp;gt;.*?)\",\s\"(?&amp;lt;Field3&amp;gt;.*?)\",\s\"(?&amp;lt;Field4&amp;gt;.*?)\",\s\"(?&amp;lt;Field5&amp;gt;.*?)\"&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2013 17:51:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Quoted-escape-characters-when-searching-a-field/m-p/185480#M53458</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2013-12-19T17:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: Quoted escape characters when searching a field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Quoted-escape-characters-when-searching-a-field/m-p/185481#M53459</link>
      <description>&lt;P&gt;I appreciate the quick response, but I would prefer not to have to do a index-time field extraction.  Additionally, this is just a piece of my log, I have an additional 20 or so fields.  Does anyone know of any other way around this?  I could use this as a last resort but would rather not have to.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2013 20:42:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Quoted-escape-characters-when-searching-a-field/m-p/185481#M53459</guid>
      <dc:creator>JoeSco27</dc:creator>
      <dc:date>2013-12-19T20:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: Quoted escape characters when searching a field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Quoted-escape-characters-when-searching-a-field/m-p/185482#M53460</link>
      <description>&lt;P&gt;This is a search time field extraction in a config file (what you asked for).  I'm not sure how to configure this to apply to only this field, but it would not surprise me if it's possible.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2013 23:58:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Quoted-escape-characters-when-searching-a-field/m-p/185482#M53460</guid>
      <dc:creator>lukejadamec</dc:creator>
      <dc:date>2013-12-19T23:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: Quoted escape characters when searching a field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Quoted-escape-characters-when-searching-a-field/m-p/185483#M53461</link>
      <description>&lt;P&gt;This could work for as an easiest options, but you need to include it in every search you make (as compare to search time field extraction suggested by @richgalloway, which you just configure once).&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;your search starter index=blah sourcetype=blah&amp;gt; | replace "\"*\"" with "*" |&amp;lt;...rest of your search&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will replace all the instance of '"value"' with 'value'.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Dec 2013 00:41:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Quoted-escape-characters-when-searching-a-field/m-p/185483#M53461</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2013-12-20T00:41:46Z</dc:date>
    </item>
  </channel>
</rss>

