{"id":72537,"date":"2023-04-12T12:33:54","date_gmt":"2023-04-12T12:33:54","guid":{"rendered":"https:\/\/merikebi.warrenmyers.com\/?p=72537"},"modified":"2023-04-12T12:33:54","modified_gmt":"2023-04-12T12:33:54","slug":"answer-by-warren-for-can-dictionary-json-like-objects-be-created-using-eval-in-splunk","status":"publish","type":"post","link":"https:\/\/merikebi.warrenmyers.com\/?p=72537","title":{"rendered":"Answer by warren for Can dictionary\/json like objects be created using eval in splunk?"},"content":{"rendered":"<p>You can use sequential <code>eval<\/code> statements to make\/overwrite fields in Splunk like this:<\/p>\n<pre><code>| eval publishedToIntegrator=if(len(raw)&gt;0,&quot;True&quot;,&quot;False&quot;)\n| eval time=if(len(publishedToIntegrator)&lt;5,_time,NULL)\n<\/code><\/pre>\n<p>However, knowing what you&#8217;re trying to accomplish will help us answer better.<\/p>\n<p>from User warren &#8211; Stack Overflow https:\/\/stackoverflow.com\/questions\/75993438\/can-dictionary-json-like-objects-be-created-using-eval-in-splunk\/75995457#75995457<br \/>\nvia <a href=\"https:\/\/ifttt.com\/?ref=da&#038;site=wordpress\">IFTTT<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can use sequential eval statements to make\/overwrite fields in Splunk like this: | eval publishedToIntegrator=if(len(raw)&gt;0,&quot;True&quot;,&quot;False&quot;) | eval time=if(len(publishedToIntegrator)&lt;5,_time,NULL) However, knowing what you&#8217;re trying to accomplish will help us answer better. from User warren &#8211; Stack Overflow https:\/\/stackoverflow.com\/questions\/75993438\/can-dictionary-json-like-objects-be-created-using-eval-in-splunk\/75995457#75995457 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-72537","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\/72537","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=72537"}],"version-history":[{"count":1,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/posts\/72537\/revisions"}],"predecessor-version":[{"id":72538,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/posts\/72537\/revisions\/72538"}],"wp:attachment":[{"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=72537"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=72537"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=72537"},{"taxonomy":"keyring_services","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fkeyring_services&post=72537"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}