{"id":356,"date":"2024-08-24T11:43:24","date_gmt":"2024-05-10T14:02:10","guid":{"rendered":""},"modified":"2025-02-02T00:46:15","modified_gmt":"2025-02-01T23:46:15","slug":"comment-installer-goaccess-log-analyzer-sur-ubuntu-24-04","status":"publish","type":"post","link":"https:\/\/netcloud24.com\/knowledgebase\/comment-installer-goaccess-log-analyzer-sur-ubuntu-24-04\/","title":{"rendered":"Comment installer GoAccess Log Analyzer sur Ubuntu 24.04"},"content":{"rendered":"<p>\u00a0<\/p>\n<p>\u00a0<\/p>\n<div class=\"container\">\n<h1>Comment installer GoAccess Log Analyzer sur Ubuntu 24.04<\/h1>\n<p>GoAccess est un analyseur de journaux en temps r\u00e9el qui fournit des statistiques rapides et pr\u00e9cieuses sur le trafic web. Ce guide vous montrera comment installer GoAccess sur Ubuntu 24.04 et le configurer pour surveiller les journaux de votre <a href=\"https:\/\/netcloud24.com?language=french&amp;currency=4\" target=\"_blank\" rel=\"follow\">serveur<\/a>.<\/p>\n<h2>\u00c9tape 1 : Mettre \u00e0 jour le syst\u00e8me<\/h2>\n<p>Tout d&#8217;abord, assurez-vous que votre liste de paquets est \u00e0 jour. Ouvrez un terminal et ex\u00e9cutez les commandes suivantes :<\/p>\n<pre><code>sudo apt update\r\nsudo apt upgrade -y<\/code><\/pre>\n<h2>\u00c9tape 2 : Installer GoAccess<\/h2>\n<p>GoAccess est disponible dans les d\u00e9p\u00f4ts par d\u00e9faut d&#8217;Ubuntu. Vous pouvez l&#8217;installer en utilisant la commande suivante :<\/p>\n<pre><code>sudo apt install goaccess -y<\/code><\/pre>\n<h2>\u00c9tape 3 : Configurer GoAccess<\/h2>\n<p>GoAccess peut \u00eatre configur\u00e9 pour lire les journaux \u00e0 partir d&#8217;un fichier sp\u00e9cifique. Les journaux les plus courants sont ceux d&#8217;Apache ou de Nginx, situ\u00e9s dans le r\u00e9pertoire <code>\/var\/log\/<\/code>. Pour analyser les journaux, vous pouvez sp\u00e9cifier le fichier de journal et le format dans la commande GoAccess. Par exemple, pour analyser le journal d&#8217;acc\u00e8s de Nginx :<\/p>\n<pre><code>goaccess \/var\/log\/nginx\/access.log -o \/var\/www\/html\/report.html --log-format=COMBINED<\/code><\/pre>\n<p>Cette commande g\u00e9n\u00e8re un rapport HTML dans le fichier <code>\/var\/www\/html\/report.html<\/code>, que vous pouvez ouvrir dans un navigateur.<\/p>\n<h2>\u00c9tape 4 : Configurer un rapport en temps r\u00e9el (facultatif)<\/h2>\n<p>Si vous souhaitez que GoAccess fournisse une analyse en temps r\u00e9el, vous pouvez utiliser la commande suivante :<\/p>\n<pre><code>goaccess \/var\/log\/nginx\/access.log -o \/var\/www\/html\/report.html --log-format=COMBINED --real-time-html --daemonize<\/code><\/pre>\n<p>Cela cr\u00e9era un rapport HTML en temps r\u00e9el auquel vous pourrez acc\u00e9der dans votre navigateur. Vous pouvez actualiser la page pour voir les statistiques mises \u00e0 jour automatiquement.<\/p>\n<h2>\u00c9tape 5 : Acc\u00e9der au rapport<\/h2>\n<p>Une fois que GoAccess est configur\u00e9 et en cours d&#8217;ex\u00e9cution, ouvrez votre navigateur et acc\u00e9dez \u00e0 <code>http:\/\/your_server_ip\/report.html<\/code> pour voir le rapport analytique. Ce rapport vous permettra de surveiller le trafic web et les erreurs sur votre <a href=\"https:\/\/netcloud24.com?language=french&amp;currency=4\" target=\"_blank\" rel=\"follow\">serveur<\/a>.<\/p>\n<h2>\u00c9tape 6 : Automatiser le traitement des journaux (facultatif)<\/h2>\n<p>Vous pouvez automatiser le traitement des journaux en cr\u00e9ant une t\u00e2che cron qui ex\u00e9cutera GoAccess \u00e0 intervalles r\u00e9guliers. Ouvrez le fichier cron avec la commande suivante :<\/p>\n<pre><code>sudo crontab -e<\/code><\/pre>\n<p>Ajoutez la ligne suivante pour ex\u00e9cuter GoAccess toutes les heures :<\/p>\n<pre><code>0 * * * * goaccess \/var\/log\/nginx\/access.log -o \/var\/www\/html\/report.html --log-format=COMBINED --real-time-html --daemonize<\/code><\/pre>\n<h2>Conclusion<\/h2>\n<p>F\u00e9licitations ! Vous avez install\u00e9 avec succ\u00e8s GoAccess sur votre <a href=\"https:\/\/netcloud24.com?language=french&amp;currency=4\" target=\"_blank\" rel=\"follow\">serveur<\/a> Ubuntu 24.04. GoAccess fournit des informations pr\u00e9cieuses en temps r\u00e9el sur le trafic web, vous aidant \u00e0 surveiller les performances de votre serveur. Avec la configuration de rapports en temps r\u00e9el, vous pouvez suivre en permanence l&#8217;activit\u00e9 et les erreurs sur votre site web.<\/p>\n<\/div>\n<p><a href=\"https:\/\/de.netcloud24.com\/\" target=\"_blank\">Windows VPS Deutschland<\/a><\/p>\n<p><a href=\"https:\/\/es.netcloud24.com\/\" target=\"_blank\">Windows VPS Espa\u00f1a<\/a><\/p>\n<p><a href=\"https:\/\/nl.netcloud24.com\/\" target=\"_blank\">Windows VPS Nederland<\/a><\/p>\n<p><a href=\"https:\/\/it.netcloud24.com\/\" target=\"_blank\">Windows VPS Italia<\/a><\/p>\n<p><a href=\"https:\/\/pt.netcloud24.com\/\" target=\"_blank\">Windows VPS Portugal<\/a><\/p>\n<p><a href=\"https:\/\/it.netcloud24.com\/\" target=\"_blank\">VPS Windows Italia<\/a><\/p>\n<p><a href=\"https:\/\/ie.netcloud24.com\" target=\"_blank\">Windows VPS<\/a><\/p>\n<p><a href=\"https:\/\/ie.netcloud24.com\" target=\"_blank\">Windows VPS<\/a><\/p>\n<p><a href=\"https:\/\/ie.netcloud24.com\" target=\"_blank\">Windows VPS Sverige<\/a><\/p>\n<p><a href=\"https:\/\/ie.netcloud24.com\" target=\"_blank\">Windows VPS Norge<\/a><\/p>\n<p><a href=\"https:\/\/ie.netcloud24.com\" target=\"_blank\">Windows VPS<\/a><\/p>\n<p><a href=\"https:\/\/ie.netcloud24.com\" target=\"_blank\">Windows VPS T\u00fcrkiye<\/a><\/p>\n<p><a href=\"https:\/\/ie.netcloud24.com\" target=\"_blank\">Windows RDS (Remote Desktop Services)<\/a><\/p>\n<p><a href=\"https:\/\/ie.netcloud24.com\" target=\"_blank\">Windows VPS<\/a><\/p>\n<div class=\"post-author-box\" style=\"border-top:1px solid #ddd;margin-top:20px;padding-top:15px;\">\n<p><strong>Author:<\/strong> \u0141ukasz Bodziony<\/p>\n<p><strong>Website:<\/strong> <a href=\"https:\/\/ca.netcloud24.com\" target=\"_blank\" rel=\"dofollow\">Windows VPS<\/a><\/p>\n<p><em>\u0141ukasz Bodziony is the CEO and founder of <a href=\"https:\/\/netcloud24.com\" target=\"_blank\" rel=\"dofollow\">NETCLOUD24<\/a>, a global VPS hosting brand proudly originating from Poland. With extensive experience in cloud computing, virtualization, and server management, he delivers high-performance <strong>Windows VPS<\/strong> and <strong>Remote Desktop Services (RDS)<\/strong> solutions to clients across Europe, North America, and beyond.<\/em><\/p>\n<p><em>His expertise covers a wide range of technologies, including <strong>Microsoft Azure<\/strong>, <strong>Proxmox VE<\/strong>, <strong>Amazon Web Services (AWS)<\/strong>, and numerous other virtualization and cloud platforms.<\/em><\/p>\n<p><em>Beyond running his hosting business, \u0141ukasz also provides <strong>professional paid server configuration and optimization services<\/strong> for companies and individuals. Outside of work, he is dedicated to caring for his children and building a secure future for them.<\/em><\/p>\n<p><em>If you are interested in working with him or need expert assistance with your hosting, cloud environment, or server setup, feel free to reach out via <a href=\"https:\/\/ca.netcloud24.com\" target=\"_blank\" rel=\"dofollow\">Windows VPS<\/a>.<\/em><\/p>\n<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u00a0 \u00a0 Comment installer GoAccess Log Analyzer sur Ubuntu 24.04 GoAccess est un analyseur de journaux en temps r\u00e9el qui fournit des statistiques rapides et pr\u00e9cieuses sur le\u2026<\/p>\n","protected":false},"author":1,"featured_media":3421,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_seopress_robots_primary_cat":"","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","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":[],"tags":[14,12,11,23,20,21,22,17,7,8,6,10,18,19,15,24,16,5,13,9],"class_list":["post-356","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","tag-cheapvps","tag-cloudvps","tag-hostingvps","tag-rds","tag-rdscal","tag-remotedesktop","tag-remotedesktopvps","tag-servervps","tag-ukvps","tag-virtualserver","tag-vpshosting","tag-vpsserver","tag-vpssolutions","tag-vpswindows","tag-vpswithwindows","tag-windowsrds","tag-windowsserver","tag-windowsvps","tag-windowsvpshosting","tag-windowsvpsuk"],"jetpack_publicize_connections":[],"_links":{"self":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/356","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/comments?post=356"}],"version-history":[{"count":0,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/356\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/media\/3421"}],"wp:attachment":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/media?parent=356"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/categories?post=356"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/tags?post=356"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}