<?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: Extract Json Fields in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Extract-Json-Fields/m-p/505694#M141384</link>
    <description>&lt;LI-CODE lang="markup"&gt;| makeresults
| eval _raw="2020-06-22 23:52:40,895 INFO [Timer-Driven Process Thread-10] o.a.nifi.processors.standard.LogMessage LogMessage[id=2202601e] TEST{
\"domain\": \"ABC\",
\"module\": \"TEST\",
\"EventID\" : \"1233\"
}"
| rex "(?ms)(?&amp;lt;json&amp;gt;{.*})"
| spath input=json&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;Is there a reason why you don't do as I said?&lt;/P&gt;</description>
    <pubDate>Tue, 23 Jun 2020 10:12:44 GMT</pubDate>
    <dc:creator>to4kawa</dc:creator>
    <dc:date>2020-06-23T10:12:44Z</dc:date>
    <item>
      <title>Extract Json Fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-Json-Fields/m-p/505668#M141370</link>
      <description>&lt;P&gt;We want to extract Json key&amp;amp;Value pairs, but source is prefixing the text before Json data.&lt;BR /&gt;Please let us know the search string to extract json fields.&lt;/P&gt;&lt;P&gt;*************************************&lt;BR /&gt;2020-06-22 23:52:40,895 INFO [Timer-Driven Process Thread-10] o.a.nifi.processors.standard.LogMessage LogMessage[id=2202601e] TEST{&lt;BR /&gt;"domain": "ABC",&lt;BR /&gt;"module": "TEST",&lt;BR /&gt;"EventID" : "1233"&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2020 08:02:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-Json-Fields/m-p/505668#M141370</guid>
      <dc:creator>srikanthr123</dc:creator>
      <dc:date>2020-06-23T08:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Json Fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-Json-Fields/m-p/505673#M141371</link>
      <description>&lt;P&gt;try &lt;STRONG&gt;rex&lt;/STRONG&gt; and &lt;STRONG&gt;spath input=rex_field&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2020 08:32:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-Json-Fields/m-p/505673#M141371</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-06-23T08:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Json Fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-Json-Fields/m-p/505682#M141375</link>
      <description>&lt;P&gt;can you please share the rex command to extract the fields&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2020 08:57:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-Json-Fields/m-p/505682#M141375</guid>
      <dc:creator>srikanthr123</dc:creator>
      <dc:date>2020-06-23T08:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Json Fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-Json-Fields/m-p/505692#M141383</link>
      <description>&lt;P&gt;I tried something like this but it is not working. can you please share the correct string&lt;/P&gt;&lt;P&gt;&lt;EM&gt;rex field=_raw "eventId=\"(?&amp;lt;eventId&amp;gt;.*)\"" | spath output=OpName path="eventId"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2020 10:09:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-Json-Fields/m-p/505692#M141383</guid>
      <dc:creator>srikanthr123</dc:creator>
      <dc:date>2020-06-23T10:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Json Fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-Json-Fields/m-p/505694#M141384</link>
      <description>&lt;LI-CODE lang="markup"&gt;| makeresults
| eval _raw="2020-06-22 23:52:40,895 INFO [Timer-Driven Process Thread-10] o.a.nifi.processors.standard.LogMessage LogMessage[id=2202601e] TEST{
\"domain\": \"ABC\",
\"module\": \"TEST\",
\"EventID\" : \"1233\"
}"
| rex "(?ms)(?&amp;lt;json&amp;gt;{.*})"
| spath input=json&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;Is there a reason why you don't do as I said?&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2020 10:12:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-Json-Fields/m-p/505694#M141384</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-06-23T10:12:44Z</dc:date>
    </item>
  </channel>
</rss>

