{"id":52152,"date":"2022-03-02T21:57:30","date_gmt":"2022-03-02T21:57:30","guid":{"rendered":"https:\/\/merikebi.warrenmyers.com\/?p=52152"},"modified":"2022-03-02T21:57:30","modified_gmt":"2022-03-02T21:57:30","slug":"answer-by-warren-for-using-regex-to-specify-delimited-fields","status":"publish","type":"post","link":"https:\/\/merikebi.warrenmyers.com\/?p=52152","title":{"rendered":"Answer by warren for Using Regex to specify delimited fields?"},"content":{"rendered":"<p>You might consider using a combination of the <a href=\"https:\/\/docs.splunk.com\/Documentation\/Splunk\/latest\/SearchReference\/CommonEvalFunctions\" rel=\"nofollow noreferrer\"><code>eval<\/code> functions<\/a> <code>split<\/code> and <code>mvindex<\/code>:<\/p>\n<pre><code>index=ndx sourcetype=srctp url=*\n| eval url_parts=split(url,&quot;\/&quot;)\n| eval segment=mvindex(url_parts,4)\n<\/code><\/pre>\n<p>from User warren &#8211; Stack Overflow https:\/\/stackoverflow.com\/questions\/71326356\/using-regex-to-specify-delimited-fields\/71329606#71329606<br \/>\nvia <a href=\"https:\/\/ifttt.com\/?ref=da&#038;site=wordpress\">IFTTT<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>You might consider using a combination of the eval functions split and mvindex: index=ndx sourcetype=srctp url=* | eval url_parts=split(url,&quot;\/&quot;) | eval segment=mvindex(url_parts,4) from User warren &#8211; Stack Overflow https:\/\/stackoverflow.com\/questions\/71326356\/using-regex-to-specify-delimited-fields\/71329606#71329606 via IFTTT<\/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-52152","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\/52152","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=52152"}],"version-history":[{"count":1,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/posts\/52152\/revisions"}],"predecessor-version":[{"id":52153,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/posts\/52152\/revisions\/52153"}],"wp:attachment":[{"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=52152"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=52152"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=52152"},{"taxonomy":"keyring_services","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fkeyring_services&post=52152"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}