<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-Hans-CN">
	<id>https://wiki.linuxsa.org/index.php?action=history&amp;feed=atom&amp;title=Filebeat_apache_log</id>
	<title>Filebeat apache log - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.linuxsa.org/index.php?action=history&amp;feed=atom&amp;title=Filebeat_apache_log"/>
	<link rel="alternate" type="text/html" href="https://wiki.linuxsa.org/index.php?title=Filebeat_apache_log&amp;action=history"/>
	<updated>2026-04-17T07:51:30Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://wiki.linuxsa.org/index.php?title=Filebeat_apache_log&amp;diff=377&amp;oldid=prev</id>
		<title>2021年4月29日 (四) 06:32 Evan</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxsa.org/index.php?title=Filebeat_apache_log&amp;diff=377&amp;oldid=prev"/>
		<updated>2021-04-29T06:32:19Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[category:ops]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
curl -L -O https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-7.12.0-amd64.deb&lt;br /&gt;
sudo dpkg -i filebeat-7.12.0-amd64.deb&lt;br /&gt;
&lt;br /&gt;
Modify /etc/filebeat/filebeat.yml to set the connection information:&lt;br /&gt;
&lt;br /&gt;
output.elasticsearch:&lt;br /&gt;
  hosts: [&amp;quot;&amp;lt;es_url&amp;gt;&amp;quot;]&lt;br /&gt;
  username: &amp;quot;elastic&amp;quot;&lt;br /&gt;
  password: &amp;quot;&amp;lt;password&amp;gt;&amp;quot;&lt;br /&gt;
setup.kibana:&lt;br /&gt;
  host: &amp;quot;&amp;lt;kibana_url&amp;gt;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Where &amp;lt;password&amp;gt; is the password of the elastic user, &amp;lt;es_url&amp;gt; is the URL of Elasticsearch, and &amp;lt;kibana_url&amp;gt; is the URL of Kibana.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Enable and configure the apache module&lt;br /&gt;
&lt;br /&gt;
 sudo filebeat modules enable apache&lt;br /&gt;
&lt;br /&gt;
Modify the settings in the /etc/filebeat/modules.d/apache.yml file.&lt;br /&gt;
&lt;br /&gt;
- module: apache&lt;br /&gt;
  # Access logs&lt;br /&gt;
  access:&lt;br /&gt;
    enabled: true&lt;br /&gt;
&lt;br /&gt;
  var.paths: [&amp;quot;/var/log/apache2/access.log&amp;quot;]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Start Filebeat&lt;br /&gt;
&lt;br /&gt;
The setup command loads the Kibana dashboards. If the dashboards are already set up, omit this command.&lt;br /&gt;
&lt;br /&gt;
sudo filebeat setup&lt;br /&gt;
sudo service filebeat start&lt;br /&gt;
&lt;br /&gt;
Data successfully received from this module&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Evan</name></author>
	</entry>
</feed>