{"id":77071,"date":"2023-08-25T13:48:40","date_gmt":"2023-08-25T13:48:40","guid":{"rendered":"https:\/\/merikebi.warrenmyers.com\/?p=77071"},"modified":"2023-08-25T13:48:40","modified_gmt":"2023-08-25T13:48:40","slug":"answer-by-warren-for-splunk-map-pass-multiple-values","status":"publish","type":"post","link":"https:\/\/merikebi.warrenmyers.com\/?p=77071","title":{"rendered":"Answer by warren for splunk map pass multiple values"},"content":{"rendered":"<p>You might try something like this (presuming you have a common field like <code>hostname<\/code> in each event):<\/p>\n<pre><code>index=ndx sourcetype=srctp (&quot;a.string&quot; OR &quot;another.string&quot;)\n| rex field=_raw &quot;some text that exists in events with a.string (?&lt;xx&gt;\\S+) (?&lt;yy&gt;\\s+)&quot;\n| rex field=_raw &quot;other text found with another.string (?&lt;zz&gt;\\S+)&quot;\n| fields xx yy zz hostname\n| stats values(*) as * by hostname\n| where isnotnull(xx) AND isnotnull(zz)\n<\/code><\/pre>\n<p>from User warren &#8211; Stack Overflow https:\/\/stackoverflow.com\/questions\/76954948\/splunk-map-pass-multiple-values\/76977806#76977806<br \/>\nvia <a href=\"https:\/\/ifttt.com\/?ref=da&#038;site=wordpress\">IFTTT<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>You might try something like this (presuming you have a common field like hostname in each event): index=ndx sourcetype=srctp (&quot;a.string&quot; OR &quot;another.string&quot;) | rex field=_raw &quot;some text that exists in events with a.string (?&lt;xx&gt;\\S+) (?&lt;yy&gt;\\s+)&quot; | rex field=_raw &quot;other text found with another.string (?&lt;zz&gt;\\S+)&quot; | fields xx yy zz hostname | stats values(*) as * &hellip;<br \/><a href=\"https:\/\/merikebi.warrenmyers.com\/?p=77071\" class=\"more-link pen_button pen_element_default pen_icon_arrow_double\">Continue reading <span class=\"screen-reader-text\">Answer by warren for splunk map pass multiple values<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4],"tags":[991],"keyring_services":[],"class_list":["post-77071","post","type-post","status-publish","format-standard","hentry","category-blih","tag-stackexchange"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/posts\/77071","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=77071"}],"version-history":[{"count":1,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/posts\/77071\/revisions"}],"predecessor-version":[{"id":77072,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/posts\/77071\/revisions\/77072"}],"wp:attachment":[{"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=77071"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=77071"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=77071"},{"taxonomy":"keyring_services","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fkeyring_services&post=77071"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}