<?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: Can't use eval function on fields extracted from json log using spath in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Can-t-use-eval-function-on-fields-extracted-from-json-log-using/m-p/346795#M162384</link>
    <description>&lt;P&gt;Hi &lt;BR /&gt;
have you tried this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|eval myval="\"".myval."\""
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 13 Mar 2018 10:16:15 GMT</pubDate>
    <dc:creator>493669</dc:creator>
    <dc:date>2018-03-13T10:16:15Z</dc:date>
    <item>
      <title>Can't use eval function on fields extracted from json log using spath</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-t-use-eval-function-on-fields-extracted-from-json-log-using/m-p/346794#M162383</link>
      <description>&lt;P&gt;I have extracted fields from a json log using spath, I want to add double quotes to the tabled results using  ... | eval myval="\"".myval."\"" but no eval function seems to work on the fields extracted in this way. What am I doing wrong??&lt;/P&gt;</description>
      <pubDate>Tue, 13 Mar 2018 09:07:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-t-use-eval-function-on-fields-extracted-from-json-log-using/m-p/346794#M162383</guid>
      <dc:creator>myobmatt</dc:creator>
      <dc:date>2018-03-13T09:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: Can't use eval function on fields extracted from json log using spath</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-t-use-eval-function-on-fields-extracted-from-json-log-using/m-p/346795#M162384</link>
      <description>&lt;P&gt;Hi &lt;BR /&gt;
have you tried this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|eval myval="\"".myval."\""
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 13 Mar 2018 10:16:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-t-use-eval-function-on-fields-extracted-from-json-log-using/m-p/346795#M162384</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2018-03-13T10:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: Can't use eval function on fields extracted from json log using spath</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-t-use-eval-function-on-fields-extracted-from-json-log-using/m-p/346796#M162385</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;

&lt;P&gt;You jus need one set of \" in the beginning and one in the end, like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval myval="\""+myval+"\""
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 13 Mar 2018 10:17:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-t-use-eval-function-on-fields-extracted-from-json-log-using/m-p/346796#M162385</guid>
      <dc:creator>tiagofbmm</dc:creator>
      <dc:date>2018-03-13T10:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: Can't use eval function on fields extracted from json log using spath</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-t-use-eval-function-on-fields-extracted-from-json-log-using/m-p/346797#M162386</link>
      <description>&lt;P&gt;Any field that I have extracted from the json log using spath, when I try to apply ANY eval function, comes up blank when I try to table it&lt;/P&gt;</description>
      <pubDate>Tue, 13 Mar 2018 10:37:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-t-use-eval-function-on-fields-extracted-from-json-log-using/m-p/346797#M162386</guid>
      <dc:creator>myobmatt</dc:creator>
      <dc:date>2018-03-13T10:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: Can't use eval function on fields extracted from json log using spath</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-t-use-eval-function-on-fields-extracted-from-json-log-using/m-p/346798#M162387</link>
      <description>&lt;P&gt;@myobmatt can you add some JSON data sample along with the field name that spath extracts?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Mar 2018 10:48:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-t-use-eval-function-on-fields-extracted-from-json-log-using/m-p/346798#M162387</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-03-13T10:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: Can't use eval function on fields extracted from json log using spath</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-t-use-eval-function-on-fields-extracted-from-json-log-using/m-p/346799#M162388</link>
      <description>&lt;P&gt;Please let me know if the answer was useful for you. If it was, accept it and upvote. If not, give us more input so we can help you with that&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 17:03:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-t-use-eval-function-on-fields-extracted-from-json-log-using/m-p/346799#M162388</guid>
      <dc:creator>tiagofbmm</dc:creator>
      <dc:date>2018-03-21T17:03:09Z</dc:date>
    </item>
  </channel>
</rss>

