{"id":11957,"date":"2020-04-28T16:23:05","date_gmt":"2020-04-28T16:23:05","guid":{"rendered":"https:\/\/merikebi.warrenmyers.com\/?p=11957"},"modified":"2020-04-28T16:23:05","modified_gmt":"2020-04-28T16:23:05","slug":"new-comment-on-reddit-1029","status":"publish","type":"post","link":"https:\/\/merikebi.warrenmyers.com\/?p=11957","title":{"rendered":"New comment on reddit"},"content":{"rendered":"<div class=\"md\">\n<p>IIRC&#8230; XML works like JSON, which means the first thing you&#39;d need to do is <code>mvzip<\/code> the fields together (followed by an <code>mvexpand<\/code>) &#8230; or use <code>mvfind<\/code> and <code>mvindex<\/code><\/p>\n<p>Here should be a couple ways to do it (note: I don&#39;t have any similar data to try this on, so it&#39;s more of an educated guess than an exact suggestion, but should put you on the right track):<\/p>\n<pre><code>&lt;search&gt; | eval tablename=mvindex(&quot;people.person.name&quot;,mvfind(&quot;people.person.age&quot;,&quot;41&quot;)) | stats count by tablename <\/code><\/pre>\n<p>If that doesn&#39;t work, try this one:<\/p>\n<pre><code>&lt;search&gt; | eval comfield=mvzip(&quot;people.person.age&quot;,&quot;people.person.name&quot;,&quot;|&quot;) | mvexpand comfield | search comfield=&quot;41*&quot; | rex field=comfield &quot;|(?&lt;name&gt;.+)&quot; | stats count by name <\/code><\/pre>\n<\/p><\/div>\n<p>April 28, 2020 at 11:54AM<br \/>\nvia reddit https:\/\/www.reddit.com\/r\/Splunk\/comments\/g9nyep\/nested_xml_search\/fourq5u?utm_source=ifttt<\/p>\n","protected":false},"excerpt":{"rendered":"<p>IIRC&#8230; XML works like JSON, which means the first thing you&#39;d need to do is mvzip the fields together (followed by an mvexpand) &#8230; or use mvfind and mvindex Here should be a couple ways to do it (note: I don&#39;t have any similar data to try this on, so it&#39;s more of an educated &hellip;<br \/><a href=\"https:\/\/merikebi.warrenmyers.com\/?p=11957\" class=\"more-link pen_button pen_element_default pen_icon_arrow_double\">Continue reading <span class=\"screen-reader-text\">New comment on reddit<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[4],"tags":[972],"keyring_services":[],"class_list":["post-11957","post","type-post","status-publish","format-standard","hentry","category-blih","tag-reddit"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/posts\/11957","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=11957"}],"version-history":[{"count":1,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/posts\/11957\/revisions"}],"predecessor-version":[{"id":11958,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/posts\/11957\/revisions\/11958"}],"wp:attachment":[{"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11957"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=11957"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=11957"},{"taxonomy":"keyring_services","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fkeyring_services&post=11957"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}