{"id":64953,"date":"2022-10-11T00:52:50","date_gmt":"2022-10-11T00:52:50","guid":{"rendered":"https:\/\/merikebi.warrenmyers.com\/?p=64953"},"modified":"2022-10-11T00:52:50","modified_gmt":"2022-10-11T00:52:50","slug":"answer-by-warren-for-why-doesnt-splunk-convert-log-in-json-format-to-json","status":"publish","type":"post","link":"https:\/\/merikebi.warrenmyers.com\/?p=64953","title":{"rendered":"Answer by warren for Why doesn&#8217;t splunk convert log in json format to json"},"content":{"rendered":"<p>Looks like you have JSON embedded in JSON &#8211; Splunk doesn&#8217;t &#8216;know&#8217; that nested JSON should be another JSON: it views it as the <em>contents<\/em> of the higher-level JSON item.<\/p>\n<p>The way to handle this is either:<\/p>\n<ul>\n<li>\n<p>don&#8217;t encapsulate JSON inside JSON<\/p>\n<\/li>\n<li>\n<p>use inline <a href=\"https:\/\/docs.splunk.com\/Documentation\/Splunk\/latest\/SearchReference\/rex\" rel=\"nofollow noreferrer\"><code>rex<\/code><\/a> statements or <code>props.conf<\/code>\/<code>transforms.conf<\/code> to handle field extractions<\/p>\n<\/li>\n<\/ul>\n<p>from User warren &#8211; Stack Overflow https:\/\/stackoverflow.com\/questions\/74010227\/why-doesnt-splunk-convert-log-in-json-format-to-json\/74021895#74021895<br \/>\nvia <a href=\"https:\/\/ifttt.com\/?ref=da&#038;site=wordpress\">IFTTT<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Looks like you have JSON embedded in JSON &#8211; Splunk doesn&#8217;t &#8216;know&#8217; that nested JSON should be another JSON: it views it as the contents of the higher-level JSON item. The way to handle this is either: don&#8217;t encapsulate JSON inside JSON use inline rex statements or props.conf\/transforms.conf to handle field extractions from User warren &hellip;<br \/><a href=\"https:\/\/merikebi.warrenmyers.com\/?p=64953\" class=\"more-link pen_button pen_element_default pen_icon_arrow_double\">Continue reading <span class=\"screen-reader-text\">Answer by warren for Why doesn&#8217;t splunk convert log in json format to json<\/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-64953","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\/64953","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=64953"}],"version-history":[{"count":1,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/posts\/64953\/revisions"}],"predecessor-version":[{"id":64954,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/posts\/64953\/revisions\/64954"}],"wp:attachment":[{"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=64953"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=64953"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=64953"},{"taxonomy":"keyring_services","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fkeyring_services&post=64953"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}