{"id":2985,"date":"2014-11-03T03:59:12","date_gmt":"2014-11-03T08:59:12","guid":{"rendered":"http:\/\/www.bytebot.net\/blog\/?p=2985"},"modified":"2014-11-03T03:59:12","modified_gmt":"2014-11-03T08:59:12","slug":"osquery-is-neat","status":"publish","type":"post","link":"https:\/\/www.bytebot.net\/blog\/archives\/2014\/11\/03\/osquery-is-neat","title":{"rendered":"osquery is neat"},"content":{"rendered":"<p>Facebook recently made opensource, <a href=\"https:\/\/github.com\/facebook\/osquery\">osquery<\/a>. It gives you operating system data via SQL queries! Its very neat, and you can test this even on MacOSX (it works on that platform &amp; Linux). It is by far the project with the most advanced functionality, linked here in this post.<\/p>\n<p>I noticed that rather quickly, there was a PostgreSQL project, called <a href=\"https:\/\/github.com\/shish\/pgosquery\">pgosquery<\/a>, based on <a href=\"https:\/\/wiki.postgresql.org\/wiki\/Foreign_data_wrappers\">Foreign Data Wrappers<\/a>\u00a0with a similar idea. (apparently it was written in less than 15 minutes; so a much lower learning curve than the regular MySQL storage engine interface)<\/p>\n<p>I immediately thought about an older MySQL project, by <a href=\"http:\/\/pattern.net\/\">Chip Turner<\/a> (then at Google, now at Facebook), called <a href=\"https:\/\/code.google.com\/p\/mysql-filesystem-engine\/\">mysql-filesystem-engine<\/a>. This idea was kicking around in 2008. I was intrigued by hearing about this at a talk (probably at the MySQL Conference &amp; Expo); it\u2019s a pity no one took this further.<\/p>\n<p>On a similar tangent, did you also know that there is the option to use MySQL as storage via FUSE (see: <a href=\"http:\/\/sourceforge.net\/projects\/mysqlfs\/\">mysqlfs<\/a>)? An <a href=\"http:\/\/archive09.linux.com\/feature\/127055\">article<\/a> by Ben Martin shows some practical examples.<\/p>\n<p>At its heyday, MySQL had many storage engines (maybe around 50). Wikipedia has an <a href=\"https:\/\/en.wikipedia.org\/wiki\/Comparison_of_MySQL_database_engines\">incomplete list<\/a>. I see some engines on that list, and think that some of these folk are also creating MongoDB backends \u2013 competition. At MariaDB we are probably <a href=\"https:\/\/mariadb.com\/kb\/en\/mariadb\/documentation\/storage-engines\/\">shipping the most storage engines<\/a> of any MySQL-based distribution, however I think we could be doing an even better job at working with upstream vendors, and figuring out how to support &amp; augment business around it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Facebook recently made opensource, osquery. It gives you operating system data via SQL queries! Its very neat, and you can test this even on MacOSX (it works on that platform &amp; Linux). It is by far the project with the most advanced functionality, linked here in this post. I noticed that rather quickly, there was [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","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_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1064,23],"tags":[297,4,1052,1775,283,45,116],"class_list":["post-2985","post","type-post","status-publish","format-standard","hentry","category-mariadb-databases","category-mysql","tag-facebook","tag-linux","tag-mariadb","tag-mysql","tag-opensource","tag-postgresql","tag-storage-engine"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/p4vJD-M9","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/posts\/2985","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/comments?post=2985"}],"version-history":[{"count":1,"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/posts\/2985\/revisions"}],"predecessor-version":[{"id":2986,"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/posts\/2985\/revisions\/2986"}],"wp:attachment":[{"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/media?parent=2985"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/categories?post=2985"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/tags?post=2985"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}