<?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 can I parse a log containing multiple JSON records? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-parse-a-log-containing-multiple-JSON-records/m-p/615854#M214006</link>
    <description>&lt;P&gt;How can I format this to a table?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this the right approach?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;rex "Requests over Threshold found: (?&amp;lt;json&amp;gt;.*)"| spath input=json
| table kv.*&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 04 Oct 2022 16:33:16 GMT</pubDate>
    <dc:creator>yk010123</dc:creator>
    <dc:date>2022-10-04T16:33:16Z</dc:date>
    <item>
      <title>How can I parse a log containing multiple JSON records?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-parse-a-log-containing-multiple-JSON-records/m-p/615839#M214002</link>
      <description>&lt;P&gt;I have the following log:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Requests over Threshold found: {"kv":{"top_requests":[{"operation_name":"get","last_dispatch_duration_us":136231,"last_remote_socket":"xx","last_local_id":"67B57F7300000001/00000000C1E2DBA3","last_local_socket":"xxx:37894","total_dispatch_duration_us":136231,"total_server_duration_us":3,"operation_id":"0x127f1","timeout_ms":250,"last_server_duration_us":3,"total_duration_us":136516},{"operation_name":"get","last_dispatch_duration_us":135914,"last_remote_socket":"xxx","last_local_id":"67B57F7300000001/00000000C1E2DBA3","last_local_socket":"xxx:37894","total_dispatch_duration_us":135914,"total_server_duration_us":15,"operation_id":"0x127e9","timeout_ms":250,"last_server_duration_us":15,"total_duration_us":135985},{"operation_name":"get","last_dispatch_duration_us":135827,"last_remote_socket":"xxx.xxx:11210","last_local_id":"67B57F7300000001/000000006A92D90B","last_local_socket":"xxx:59306","total_dispatch_duration_us":135827,"total_server_duration_us":15,"operation_id":"0x127e7","timeout_ms":250,"last_server_duration_us":15,"total_duration_us":135946}],"total_count":3}}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I parse this?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2022 15:10:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-parse-a-log-containing-multiple-JSON-records/m-p/615839#M214002</guid>
      <dc:creator>yk010123</dc:creator>
      <dc:date>2022-10-04T15:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: How can I parse a log containing multiple JSON records?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-parse-a-log-containing-multiple-JSON-records/m-p/615852#M214004</link>
      <description>&lt;LI-CODE lang="markup"&gt;| rex "Requests over Threshold found: (?&amp;lt;json&amp;gt;.*)"
| spath input=json&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 04 Oct 2022 16:24:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-parse-a-log-containing-multiple-JSON-records/m-p/615852#M214004</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-10-04T16:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: How can I parse a log containing multiple JSON records?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-parse-a-log-containing-multiple-JSON-records/m-p/615854#M214006</link>
      <description>&lt;P&gt;How can I format this to a table?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this the right approach?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;rex "Requests over Threshold found: (?&amp;lt;json&amp;gt;.*)"| spath input=json
| table kv.*&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 04 Oct 2022 16:33:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-parse-a-log-containing-multiple-JSON-records/m-p/615854#M214006</guid>
      <dc:creator>yk010123</dc:creator>
      <dc:date>2022-10-04T16:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: How can I parse a log containing multiple JSON records?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-parse-a-log-containing-multiple-JSON-records/m-p/615855#M214007</link>
      <description>&lt;P&gt;It depends on what you are trying to achieve&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2022 16:35:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-parse-a-log-containing-multiple-JSON-records/m-p/615855#M214007</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-10-04T16:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: How can I parse a log containing multiple JSON records?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-parse-a-log-containing-multiple-JSON-records/m-p/615856#M214008</link>
      <description>&lt;P&gt;I am trying to show all the fields in a table format so I can sort and analyze them&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2022 16:48:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-parse-a-log-containing-multiple-JSON-records/m-p/615856#M214008</guid>
      <dc:creator>yk010123</dc:creator>
      <dc:date>2022-10-04T16:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: How can I parse a log containing multiple JSON records?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-parse-a-log-containing-multiple-JSON-records/m-p/615858#M214010</link>
      <description>&lt;P&gt;Depending on what you want - assuming you are just looking at top_requests, you could do something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "Requests over Threshold found: (?&amp;lt;json&amp;gt;.*)"
| spath input=json kv.top_requests{} output=top_requests
| mvexpand top_requests
| spath input=top_requests&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 04 Oct 2022 17:04:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-parse-a-log-containing-multiple-JSON-records/m-p/615858#M214010</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-10-04T17:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: How can I parse a log containing multiple JSON records?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-parse-a-log-containing-multiple-JSON-records/m-p/615859#M214011</link>
      <description>&lt;P&gt;I would like to show all the fields from the JSON in a table format such that we have field=value&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2022 17:07:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-parse-a-log-containing-multiple-JSON-records/m-p/615859#M214011</guid>
      <dc:creator>yk010123</dc:creator>
      <dc:date>2022-10-04T17:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: How can I parse a log containing multiple JSON records?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-parse-a-log-containing-multiple-JSON-records/m-p/615861#M214013</link>
      <description>&lt;P&gt;If we have multiple entries in the JSON, it should create individual rows&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2022 17:11:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-parse-a-log-containing-multiple-JSON-records/m-p/615861#M214013</guid>
      <dc:creator>yk010123</dc:creator>
      <dc:date>2022-10-04T17:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: How can I parse a log containing multiple JSON records?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-parse-a-log-containing-multiple-JSON-records/m-p/615862#M214014</link>
      <description>&lt;P&gt;Perhaps this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| spath input=json kv.top_requests{} output=top_requests | mvexpand top_requests
| spath input=top_requests
| table operation_name last_dispatch_duration_us last_remote_socket last_local_id last_local_socket total_dispatch_duration_us total_server_duration_us operation_id timeout_ms last_server_duration_us total_duration_us&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 04 Oct 2022 17:13:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-parse-a-log-containing-multiple-JSON-records/m-p/615862#M214014</guid>
      <dc:creator>yk010123</dc:creator>
      <dc:date>2022-10-04T17:13:12Z</dc:date>
    </item>
  </channel>
</rss>

