<?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: Working with a json string in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Working-with-a-json-string/m-p/651556#M225248</link>
    <description>&lt;P&gt;Strings need to be in double quotes and embedded quotes need to be escaped&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval data="{\"time\": \"2023-07-21T19:10:48+00:00\", \"pid\": 24086, \"msec\": 1689966648.059, \"remote_addr\": \"aaa.bbb.ccc.ddd\", \"request_time\": 0.005, \"host\": \"sitename.noname.org\", \"remote_user\": \"-\", \"request_filtered\": \"GET /healthz HTTP/1.1\", \"status\": 200, \"body_bytes_sent\": 13, \"bytes_sent\": 869, \"request_length\": 72, \"http_referer_filtered\": \"\", \"http_user_agent\": \"-\", \"http_x_forwarded_for\": \"-\", \"context\": \"973235423dccda96a385ca21c133891632a28d91\"}"&lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 21 Jul 2023 20:36:42 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2023-07-21T20:36:42Z</dc:date>
    <item>
      <title>Working with a json string</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Working-with-a-json-string/m-p/651554#M225247</link>
      <description>&lt;P&gt;I've got a feed that is sending non-compliant json since spath doesn't work on it.&amp;nbsp; I put together this search&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=dlp sourcetype=sft:json "{"
| head 1
| eval data='{"time": "2023-07-21T19:10:48+00:00", "pid": 24086, "msec": 1689966648.059, "remote_addr": "aaa.bbb.ccc.ddd", "request_time": 0.005, "host": "sitename.noname.org", "remote_user": "-", "request_filtered": "GET /healthz HTTP/1.1", "status": 200, "body_bytes_sent": 13, "bytes_sent": 869, "request_length": 72, "http_referer_filtered": "", "http_user_agent": "-", "http_x_forwarded_for": "-", "context": "973235423dccda96a385ca21c133891632a28d91"}'
| spath input=data&lt;/LI-CODE&gt;&lt;P&gt;I'm not seeing any value for data, thus nothing for the spath.&amp;nbsp; Do I need to do something special to the eval to get it to process?&lt;/P&gt;&lt;P&gt;TIA,&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2023 20:14:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Working-with-a-json-string/m-p/651554#M225247</guid>
      <dc:creator>jwhughes58</dc:creator>
      <dc:date>2023-07-21T20:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: Working with a json string</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Working-with-a-json-string/m-p/651556#M225248</link>
      <description>&lt;P&gt;Strings need to be in double quotes and embedded quotes need to be escaped&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval data="{\"time\": \"2023-07-21T19:10:48+00:00\", \"pid\": 24086, \"msec\": 1689966648.059, \"remote_addr\": \"aaa.bbb.ccc.ddd\", \"request_time\": 0.005, \"host\": \"sitename.noname.org\", \"remote_user\": \"-\", \"request_filtered\": \"GET /healthz HTTP/1.1\", \"status\": 200, \"body_bytes_sent\": 13, \"bytes_sent\": 869, \"request_length\": 72, \"http_referer_filtered\": \"\", \"http_user_agent\": \"-\", \"http_x_forwarded_for\": \"-\", \"context\": \"973235423dccda96a385ca21c133891632a28d91\"}"&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 21 Jul 2023 20:36:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Working-with-a-json-string/m-p/651556#M225248</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-07-21T20:36:42Z</dc:date>
    </item>
  </channel>
</rss>

