<?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: Searching JSON data in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Searching-JSON-data/m-p/184942#M37076</link>
    <description>&lt;P&gt;hi danwollwich,&lt;/P&gt;

&lt;P&gt;try the &lt;CODE&gt;spath&lt;/CODE&gt; search command, it is a special search command for XML and JSON events. Find more information in the docs about &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0/SearchReference/Spath"&gt;spath&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
    <pubDate>Thu, 19 Dec 2013 09:21:18 GMT</pubDate>
    <dc:creator>MuS</dc:creator>
    <dc:date>2013-12-19T09:21:18Z</dc:date>
    <item>
      <title>Searching JSON data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Searching-JSON-data/m-p/184941#M37075</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I'm trying to search some JSON data I've imported. Its of the format below.&lt;/P&gt;

&lt;P&gt;{ "_id" : { "ip" : “192.1”68.1.1, "p" : 443, "h" : "d077c796eeddd46da45adfcd74116e2" }, "ip" : “192.168”.1.1, "port" : 443, "proto" : "tcp", "banner" : "HTTP/1.1 200 OK\r\nDate: Tue, 15 May 2012 05:30:04 GMT\r\n\nServer: Apache/2.2.15 (CentOS)\r\nLast-Modified: Mon, 24 Oct 2011 14:40\n:33 GMT\r\nETag: \"900cdb-38-4b00c67c36967\"\r\nAccept-Ranges: bytes\r\nC\nontent-Length: 56\r\nConnection: close\r\nContent-Type: text/html; char\nset=UTF-8\r\n\r\n\n&lt;/P&gt;&lt;H2&gt;&lt;/H2&gt;\n\n", "geo" : { "c" : "USA", "loc" : [ 38, -97 ] }, "name" : "https", "t" : { "$date" : 1337059668000 } }&lt;P&gt;&lt;/P&gt;

&lt;P&gt;I can do basic searches against things like the IP address but when i want to search for matching items such as the Server type, in this case Apache/2.2.15(CentOS) I seem to fall foul of some of the characters. How would i do matches for this type of data or others like Content Length? Trying to match on something that has a : on it seems to break the search term.&lt;/P&gt;

&lt;P&gt;Thanks in advance&lt;/P&gt;

&lt;P&gt;Dan &lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2013 09:14:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Searching-JSON-data/m-p/184941#M37075</guid>
      <dc:creator>danwollwich</dc:creator>
      <dc:date>2013-12-19T09:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: Searching JSON data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Searching-JSON-data/m-p/184942#M37076</link>
      <description>&lt;P&gt;hi danwollwich,&lt;/P&gt;

&lt;P&gt;try the &lt;CODE&gt;spath&lt;/CODE&gt; search command, it is a special search command for XML and JSON events. Find more information in the docs about &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0/SearchReference/Spath"&gt;spath&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2013 09:21:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Searching-JSON-data/m-p/184942#M37076</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2013-12-19T09:21:18Z</dc:date>
    </item>
  </channel>
</rss>

