{"id":8435,"date":"2020-02-06T18:10:06","date_gmt":"2020-02-06T18:10:06","guid":{"rendered":"https:\/\/merikebi.warrenmyers.com\/?p=8435"},"modified":"2020-02-06T18:10:06","modified_gmt":"2020-02-06T18:10:06","slug":"new-comment-on-reddit-426","status":"publish","type":"post","link":"https:\/\/merikebi.warrenmyers.com\/?p=8435","title":{"rendered":"New comment on reddit"},"content":{"rendered":"<div class=\"md\">\n<p>Here, for example, is the standard &quot;unifying&quot; <code>eval<\/code> I use to normalize MAC addresses:<\/p>\n<pre><code>| eval mac=upper(replace(mac,&quot;\\W&quot;,&quot;&quot;)) <\/code><\/pre>\n<p>Which replaces any non-word ([a-zA-Z0-9]) characters with nothing &#8211; so it yoinks colons, etc &#8211; and makes it all uppercase<\/p>\n<p>Of course &#8211; <em>that<\/em> presumes the MAC comes-in in something like one of the following formats:<\/p>\n<ul>\n<li>xx:XX:00:xX:0X:x0<\/li>\n<li>xxXX00xX0Xx0<\/li>\n<\/ul>\n<p>And not something wacky like:<\/p>\n<ul>\n<li><code>mac:0X..<\/code><\/li>\n<\/ul>\n<p>Because yoinking the first colon in that format will just be wrong!<\/p>\n<\/p><\/div>\n<p>February 06, 2020 at 12:45PM<br \/>\nvia reddit https:\/\/www.reddit.com\/r\/Splunk\/comments\/ezv6ay\/newbie_question_about_a_splunk_capability\/fgpsh52?utm_source=ifttt<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here, for example, is the standard &quot;unifying&quot; eval I use to normalize MAC addresses: | eval mac=upper(replace(mac,&quot;\\W&quot;,&quot;&quot;)) Which replaces any non-word ([a-zA-Z0-9]) characters with nothing &#8211; so it yoinks colons, etc &#8211; and makes it all uppercase Of course &#8211; that presumes the MAC comes-in in something like one of the following formats: xx:XX:00:xX:0X:x0 xxXX00xX0Xx0 &hellip;<br \/><a href=\"https:\/\/merikebi.warrenmyers.com\/?p=8435\" 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-8435","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\/8435","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=8435"}],"version-history":[{"count":1,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/posts\/8435\/revisions"}],"predecessor-version":[{"id":8436,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/posts\/8435\/revisions\/8436"}],"wp:attachment":[{"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8435"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8435"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8435"},{"taxonomy":"keyring_services","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fkeyring_services&post=8435"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}