{"id":1101,"date":"2011-06-05T00:34:17","date_gmt":"2011-06-04T19:04:17","guid":{"rendered":"http:\/\/judepereira.com\/blog\/?p=1101"},"modified":"2011-06-05T00:34:17","modified_gmt":"2011-06-04T19:04:17","slug":"rsyslog-readable-time-stamps","status":"publish","type":"post","link":"https:\/\/judepereira.com\/blog\/rsyslog-readable-time-stamps\/","title":{"rendered":"rsyslog: readable time stamps"},"content":{"rendered":"<p>As of the recent change in time stamps in rsyslog, you have the following time stamp in your logs:<br \/>\n<strong>2011-06-05T00:21:46.693033+05:08<\/strong><\/p>\n<p>Now isn&#8217;t that hard and complicated?<br \/>\nSeriously, who wants a high precision time stamp? Here&#8217;s how you quickly change it to a much more readable and simpler one. Add the following code to the beginning of \/etc\/rsyslog.conf<\/p>\n<pre>\r\n# Traditional Output Method\r\n$template TraditionalFormat,\"%timegenerated% %HOSTNAME% %syslogtag% %msg%\\n\"\r\n$ActionFileDefaultTemplate TraditionalFormat\r\n<\/pre>\n<p>&nbsp;<br \/>\nRestart rsyslog. This is what you will get:<br \/>\n<strong>Jun  5 00:22:58<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>As of the recent change in time stamps in rsyslog, you have the following time stamp in your logs: 2011-06-05T00:21:46.693033+05:08 Now isn&#8217;t that hard and complicated? Seriously, who wants a high precision time stamp? Here&#8217;s how you quickly change it to a much more readable and simpler one. Add the following code to the beginning [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[12],"tags":[282,275,277,274,280,279,281,278,276],"class_list":["post-1101","post","type-post","status-publish","format-standard","hentry","category-misc","tag-better","tag-old","tag-readable","tag-rsyslog","tag-stamp","tag-time","tag-time-stamp","tag-timestamp","tag-traditional"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pqtyx-hL","jetpack-related-posts":[{"id":20,"url":"https:\/\/judepereira.com\/blog\/merry-christmas\/","url_meta":{"origin":1101,"position":0},"title":"Merry Christmas","author":"Jude Pereira","date":"December 25, 2008","format":false,"excerpt":"\"I have always thought of Christmas time, when it has come round, as a good time; a kind, forgiving, charitable time; the only time I know of, in the long calendar of the year, when men and women seem by one consent to open their shut-up hearts freely, and to\u2026","rel":"","context":"In &quot;miscellaneous&quot;","block_context":{"text":"miscellaneous","link":"https:\/\/judepereira.com\/blog\/category\/misc\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1635,"url":"https:\/\/judepereira.com\/blog\/discover-my-second-ios-app\/","url_meta":{"origin":1101,"position":1},"title":"Discover &#8211; my second iOS app","author":"Jude Pereira","date":"July 5, 2015","format":false,"excerpt":"iTunes Genius is a great feature. However, it lacks music discovery outside your own music library. Sure, you can always do a Google search for similar tunes, but let's face it - who has time to do this anymore? There weren't any great music discovery apps on the App Store\u2026","rel":"","context":"In &quot;ios&quot;","block_context":{"text":"ios","link":"https:\/\/judepereira.com\/blog\/category\/code\/ios\/"},"img":{"alt_text":"Highlights of Discover","src":"https:\/\/i0.wp.com\/judepereira.com\/blog\/wp-content\/uploads\/feature-both-small.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/judepereira.com\/blog\/wp-content\/uploads\/feature-both-small.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/judepereira.com\/blog\/wp-content\/uploads\/feature-both-small.png?resize=525%2C300 1.5x, https:\/\/i0.wp.com\/judepereira.com\/blog\/wp-content\/uploads\/feature-both-small.png?resize=700%2C400 2x"},"classes":[]},{"id":38,"url":"https:\/\/judepereira.com\/blog\/happy-new-year\/","url_meta":{"origin":1101,"position":2},"title":"Happy New Year","author":"Jude Pereira","date":"January 1, 2009","format":false,"excerpt":"Seasons change as time passes by. What's more? It's now 2009 years A.D.! People are joyful, partying all night long. May peace thrive the hearts of men and women as they set out on this new year! Peace to all and a Happy New Year to you and your Family!","rel":"","context":"In &quot;miscellaneous&quot;","block_context":{"text":"miscellaneous","link":"https:\/\/judepereira.com\/blog\/category\/misc\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1734,"url":"https:\/\/judepereira.com\/blog\/why-matchbox-and-how-it-connects-people-through-music\/","url_meta":{"origin":1101,"position":3},"title":"Why Matchbox, and how it connects people through music","author":"Jude Pereira","date":"January 21, 2017","format":false,"excerpt":"There's no doubt that music defines us. It influences our moods, for example, making us happy by releasing a chemical named dopamine. It can affect what we wear, what we eat, and perhaps even who we enjoy being together with. It affects\u00a0our thought process too (it's well known that ambient\u2026","rel":"","context":"In &quot;android&quot;","block_context":{"text":"android","link":"https:\/\/judepereira.com\/blog\/category\/code\/android\/"},"img":{"alt_text":"Matchbox showing the top 10 artists","src":"https:\/\/i0.wp.com\/judepereira.com\/blog\/wp-content\/uploads\/IMG_7195-300x210.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":1600,"url":"https:\/\/judepereira.com\/blog\/mpu-6050-and-its-dmp-over-time\/","url_meta":{"origin":1101,"position":4},"title":"MPU 6050 and it&#8217;s DMP over time","author":"Jude Pereira","date":"January 17, 2015","format":false,"excerpt":"Using Jeff's brilliant library for using the DMP on the MPU 6050, here are graphs of the DMP filling the FIFO buffer at 200 Hz, 100 Hz, and 50 Hz. At 200 Hz, I found that while the MPU did interrupt my Arduino Due at 200 Hz, I could only\u2026","rel":"","context":"In &quot;hardware&quot;","block_context":{"text":"hardware","link":"https:\/\/judepereira.com\/blog\/category\/hardware\/"},"img":{"alt_text":"MPU 6050 at 200 Hz","src":"https:\/\/i0.wp.com\/judepereira.com\/blog\/wp-content\/uploads\/200hz.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/judepereira.com\/blog\/wp-content\/uploads\/200hz.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/judepereira.com\/blog\/wp-content\/uploads\/200hz.png?resize=525%2C300 1.5x, https:\/\/i0.wp.com\/judepereira.com\/blog\/wp-content\/uploads\/200hz.png?resize=700%2C400 2x, https:\/\/i0.wp.com\/judepereira.com\/blog\/wp-content\/uploads\/200hz.png?resize=1050%2C600 3x"},"classes":[]},{"id":1936,"url":"https:\/\/judepereira.com\/blog\/taming-a-throttled-api-with-dynamic-proxies-in-java\/","url_meta":{"origin":1101,"position":5},"title":"Taming a throttled API with Dynamic Proxies in Java","author":"Jude Pereira","date":"January 20, 2021","format":false,"excerpt":"Recently, at CleverTap, we've begun migrating some of our largest clusters to a new protocol (for starters, think ~115 instances at a time). One of the most fun things I've had my hands on during this migration was the AWS Systems Manager API. When we scaled up our migrations gradually\u2026","rel":"","context":"In &quot;another snippet | code&quot;","block_context":{"text":"another snippet | code","link":"https:\/\/judepereira.com\/blog\/category\/code\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/judepereira.com\/blog\/wp-json\/wp\/v2\/posts\/1101","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/judepereira.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/judepereira.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/judepereira.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/judepereira.com\/blog\/wp-json\/wp\/v2\/comments?post=1101"}],"version-history":[{"count":7,"href":"https:\/\/judepereira.com\/blog\/wp-json\/wp\/v2\/posts\/1101\/revisions"}],"predecessor-version":[{"id":1109,"href":"https:\/\/judepereira.com\/blog\/wp-json\/wp\/v2\/posts\/1101\/revisions\/1109"}],"wp:attachment":[{"href":"https:\/\/judepereira.com\/blog\/wp-json\/wp\/v2\/media?parent=1101"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/judepereira.com\/blog\/wp-json\/wp\/v2\/categories?post=1101"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/judepereira.com\/blog\/wp-json\/wp\/v2\/tags?post=1101"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}