{"id":40664,"date":"2021-08-03T19:12:28","date_gmt":"2021-08-03T19:12:28","guid":{"rendered":"https:\/\/merikebi.warrenmyers.com\/?p=40664"},"modified":"2021-08-03T19:12:28","modified_gmt":"2021-08-03T19:12:28","slug":"answer-by-warren-for-why-is-splunk-not-showing-miliseconds-for-json","status":"publish","type":"post","link":"https:\/\/merikebi.warrenmyers.com\/?p=40664","title":{"rendered":"Answer by warren for Why is Splunk not showing miliseconds for JSON?"},"content":{"rendered":"<p>The value that actually goes into <code>_time<\/code> is in <a href=\"https:\/\/docs.splunk.com\/Documentation\/Splunk\/latest\/SearchReference\/DateandTimeFunctions\" rel=\"nofollow noreferrer\">Unix<\/a> epoch <a href=\"https:\/\/docs.splunk.com\/Documentation\/Splunk\/latest\/Search\/Specifytimemodifiersinyoursearch\" rel=\"nofollow noreferrer\">seconds<\/a>.<\/p>\n<p>It doesn&#8217;t matter what precision you look for with <code>TIME_FORMAT=<\/code> &#8230; it still only goes into <code>_time<\/code> in whole seconds.<\/p>\n<p>If you want to keep the higher-resolution value for use elsehow, you&#8217;ll need to add a specific field extraction for them.<\/p>\n<p>Since this is JSON, you can <em>probably<\/em> do the following in a search:<\/p>\n<pre><code>...\n| eval timestamp=strftime('@timestamp',&quot;%Y-%m-%dT%H:%M:%S.%6N&quot;))\n...\n<\/code><\/pre>\n<p>from User warren &#8211; Stack Overflow https:\/\/stackoverflow.com\/questions\/68636429\/why-is-splunk-not-showing-miliseconds-for-json\/68641595#68641595<br \/>\nvia <a href=\"https:\/\/ifttt.com\/?ref=da&#038;site=wordpress\">IFTTT<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The value that actually goes into _time is in Unix epoch seconds. It doesn&#8217;t matter what precision you look for with TIME_FORMAT= &#8230; it still only goes into _time in whole seconds. If you want to keep the higher-resolution value for use elsehow, you&#8217;ll need to add a specific field extraction for them. Since this &hellip;<br \/><a href=\"https:\/\/merikebi.warrenmyers.com\/?p=40664\" class=\"more-link pen_button pen_element_default pen_icon_arrow_double\">Continue reading <span class=\"screen-reader-text\">Answer by warren for Why is Splunk not showing miliseconds for 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-40664","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\/40664","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=40664"}],"version-history":[{"count":1,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/posts\/40664\/revisions"}],"predecessor-version":[{"id":40665,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/posts\/40664\/revisions\/40665"}],"wp:attachment":[{"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=40664"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=40664"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=40664"},{"taxonomy":"keyring_services","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fkeyring_services&post=40664"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}