{"id":183,"date":"2025-02-12T13:40:45","date_gmt":"2025-02-12T16:40:45","guid":{"rendered":"https:\/\/thiagoldaniel.com.br\/?p=183"},"modified":"2025-02-12T13:40:45","modified_gmt":"2025-02-12T16:40:45","slug":"habilitando-a-auditoria-de-conexoes-no-mysql-mariadb","status":"publish","type":"post","link":"https:\/\/thiagoldaniel.com.br\/index.php\/2025\/02\/12\/habilitando-a-auditoria-de-conexoes-no-mysql-mariadb\/","title":{"rendered":"Habilitando a auditoria de conex\u00f5es no Mysql \/ MariaDB."},"content":{"rendered":"\n<p>Ol\u00e1 caros e caras, muito boa tarde a todos.<\/p>\n\n\n\n<p>A dica de hoje \u00e9 de como se habilitar a AUDITORIA afim de se verificar de onde partem todas as conex\u00f5es ao servidor de banco de dados Mysql e MariaDB.<\/p>\n\n\n\n<p>Basta editar o arquivo \/etc\/my.conf ou o arquivo de configura\u00e7\u00e3o especifico de sua distribui\u00e7\u00e3o e acrescentar as seguintes linhas ajustando conforme a sua necessidade.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;mysqld]\nplugin_load_add = server_audit\nserver_audit_events = CONNECT\nserver_audit_logging = ON\nserver_audit_file_path = \/var\/log\/mariadb\/audit.log\nserver_audit_output_type = file<\/code><\/pre>\n\n\n\n<p>Pare e inicie o servi\u00e7o do SGBD e veja se o arquivo foi criado com sucesso.<\/p>\n\n\n\n<p>Grande abra\u00e7o a todos.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ol\u00e1 caros e caras, muito boa tarde a todos. A dica de hoje \u00e9 de como se habilitar a AUDITORIA afim de se verificar de onde partem todas as conex\u00f5es ao servidor de banco de dados Mysql e MariaDB. Basta editar o<\/p>\n<p class=\"link-more\"><a class=\"myButt three\" href=\"https:\/\/thiagoldaniel.com.br\/index.php\/2025\/02\/12\/habilitando-a-auditoria-de-conexoes-no-mysql-mariadb\/\">Leia Mais&#8230;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-183","post","type-post","status-publish","format-standard","hentry","category-sem-categoria"],"_links":{"self":[{"href":"https:\/\/thiagoldaniel.com.br\/index.php\/wp-json\/wp\/v2\/posts\/183","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thiagoldaniel.com.br\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thiagoldaniel.com.br\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thiagoldaniel.com.br\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/thiagoldaniel.com.br\/index.php\/wp-json\/wp\/v2\/comments?post=183"}],"version-history":[{"count":1,"href":"https:\/\/thiagoldaniel.com.br\/index.php\/wp-json\/wp\/v2\/posts\/183\/revisions"}],"predecessor-version":[{"id":184,"href":"https:\/\/thiagoldaniel.com.br\/index.php\/wp-json\/wp\/v2\/posts\/183\/revisions\/184"}],"wp:attachment":[{"href":"https:\/\/thiagoldaniel.com.br\/index.php\/wp-json\/wp\/v2\/media?parent=183"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thiagoldaniel.com.br\/index.php\/wp-json\/wp\/v2\/categories?post=183"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thiagoldaniel.com.br\/index.php\/wp-json\/wp\/v2\/tags?post=183"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}