<?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: how to extract fields from json format event? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/how-to-extract-fields-from-json-format-event/m-p/670923#M229957</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nehamvinchankar_0-1701833361480.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/28387i56BACE54CC4C1E11/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nehamvinchankar_0-1701833361480.png" alt="nehamvinchankar_0-1701833361480.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;details field is blank&lt;/P&gt;</description>
    <pubDate>Wed, 06 Dec 2023 03:29:38 GMT</pubDate>
    <dc:creator>nehamvinchankar</dc:creator>
    <dc:date>2023-12-06T03:29:38Z</dc:date>
    <item>
      <title>how to extract fields from json format event?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-extract-fields-from-json-format-event/m-p/670825#M229925</link>
      <description>&lt;P&gt;Hi all, i want to extract fields from event which is in json format&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;INFO [processor: anchsdgeiskgcbc/5; event: 1-57d28402-9058-11ee-83b7-021a6f9d1f1c] : DETAILS: [
{
"ERROR_MESSAGE": "\nError: abchdvshsuaajs.\n",
"NUMBER": "123r57",
"DB_TIMESTAMP": "2023-11-30"
},
{
"ERROR_MESSAGE": "\nError: ehwegagsuabajehss.\n",
"NUMBER": "63638w82u",
"DB_TIMESTAMP": "2023-11-30"
},

and similarly we have these error data in one event

Fields to be extracted -
ERROR_MESSAGE
NUMBER
DB_TIMESTAMP&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 15:07:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-extract-fields-from-json-format-event/m-p/670825#M229925</guid>
      <dc:creator>nehamvinchankar</dc:creator>
      <dc:date>2023-12-05T15:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: how to extract fields from json format event?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-extract-fields-from-json-format-event/m-p/670842#M229930</link>
      <description>&lt;P&gt;Given that this doesn't appear to be wholly correct JSON, you could start with something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "DETAILS: (?&amp;lt;details&amp;gt;\[.*\])"
| spath input=details &lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 05 Dec 2023 14:19:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-extract-fields-from-json-format-event/m-p/670842#M229930</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-12-05T14:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: how to extract fields from json format event?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-extract-fields-from-json-format-event/m-p/670855#M229936</link>
      <description>&lt;P&gt;no this is not working&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 15:09:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-extract-fields-from-json-format-event/m-p/670855#M229936</guid>
      <dc:creator>nehamvinchankar</dc:creator>
      <dc:date>2023-12-05T15:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: how to extract fields from json format event?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-extract-fields-from-json-format-event/m-p/670859#M229937</link>
      <description>&lt;P&gt;What results do you get then?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 15:19:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-extract-fields-from-json-format-event/m-p/670859#M229937</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-12-05T15:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: how to extract fields from json format event?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-extract-fields-from-json-format-event/m-p/670923#M229957</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nehamvinchankar_0-1701833361480.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/28387i56BACE54CC4C1E11/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nehamvinchankar_0-1701833361480.png" alt="nehamvinchankar_0-1701833361480.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;details field is blank&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2023 03:29:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-extract-fields-from-json-format-event/m-p/670923#M229957</guid>
      <dc:creator>nehamvinchankar</dc:creator>
      <dc:date>2023-12-06T03:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: how to extract fields from json format event?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-extract-fields-from-json-format-event/m-p/670954#M229963</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "(?ms)DETAILS: (?&amp;lt;details&amp;gt;\[.*\])"
| spath input=details &lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 06 Dec 2023 08:39:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-extract-fields-from-json-format-event/m-p/670954#M229963</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-12-06T08:39:10Z</dc:date>
    </item>
  </channel>
</rss>

