惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

D
DataBreaches.Net
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Google DeepMind News
Google DeepMind News
博客园 - 聂微东
Microsoft Azure Blog
Microsoft Azure Blog
V
Visual Studio Blog
IT之家
IT之家
博客园 - 【当耐特】
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
B
Blog
爱范儿
爱范儿
阮一峰的网络日志
阮一峰的网络日志
云风的 BLOG
云风的 BLOG
Vercel News
Vercel News
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
H
Hackread – Cybersecurity News, Data Breaches, AI and More
H
Help Net Security
J
Java Code Geeks
aimingoo的专栏
aimingoo的专栏
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
B
Blog RSS Feed
Blog — PlanetScale
Blog — PlanetScale
S
SegmentFault 最新的问题
Apple Machine Learning Research
Apple Machine Learning Research

AUR Newest Packages

AUR (en) - linuxqq-clipsync-git AUR (en) - libtslitex-git AUR (en) - libtslitex-git AUR (en) - carton-appimage AUR (en) - veila-git AUR (en) - veila-bin AUR (en) - vigil-baseline AUR (en) - byedroid AUR (en) - neovim-base16-git AUR (en) - pirata AUR (en) - rpi-imager-git-non-root AUR (en) - python-fastapi-sso AUR (en) - tmux-ai-titles AUR (en) - zeed-bin AUR (en) - bclone-bin AUR (en) - dwl-git-azerty AUR (en) - auggie-bin AUR (en) - libspatialaudio-git AUR (en) - libspatialaudio AUR (en) - miniupnpd-iptables-legacy AUR (en) - miniupnpd-nft AUR (en) - jeeves-bin AUR (en) - opennow AUR (en) - rotki AUR (en) - kapi-bin AUR (en) - classfi-bin AUR (en) - classfi-git AUR (en) - classfi AUR (en) - giff-git AUR (en) - budget-tracker-bin
AUR (en) - filebeat-oss-bin
2026-05-29 · via AUR Newest Packages

It is quite simple - there is only one '-' character missing from the path information in the file filebeat-oss.service (see also):


11:43 $ git diff
diff --git a/filebeat-oss.service b/filebeat-oss.service
index 022b869..219d19b 100644
--- a/filebeat-oss.service
+++ b/filebeat-oss.service
@@ -7,7 +7,7 @@ After=network-online.target
 [Service]
 Environment="BEAT_LOG_OPTS=-e”
 Environment="BEAT_CONFIG_OPTS=-c /etc/filebeat-oss/filebeat.yml”
-Environment="BEAT_PATH_OPTS=-path.home /usr/share/filebeat-oss -path.config /etc/filebeat-oss -path.data /var/lib/filebeat-oss -path.logs /var/log/filebeat-oss”
+Environment="BEAT_PATH_OPTS=--path.home /usr/share/filebeat-oss --path.config /etc/filebeat-oss --path.data /var/lib/filebeat-oss --path.logs /var/log/filebeat-oss”
 ExecStart=/usr/bin/filebeat-oss $BEAT_LOG_OPTS $BEAT_CONFIG_OPTS $BEAT_PATH_OPTS
 Restart=on-failure

I was getting an error with systemctl start filebeat-oss.service.

I fixed it by adjusting the systemd service file to align with the one used in the official .deb file available here: https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-8.17.0-amd64.deb

diff --git a/filebeat-oss.service b/filebeat-oss.service
index 022b869..3d6912a 100644
--- a/filebeat-oss.service
+++ b/filebeat-oss.service
@@ -5,10 +5,12 @@ Wants=network-online.target
 After=network-online.target

 [Service]
-Environment="BEAT_LOG_OPTS=-e"
+UMask=0027
+Environment="GODEBUG='madvdontneed=1'"
+Environment="BEAT_LOG_OPTS="
 Environment="BEAT_CONFIG_OPTS=-c /etc/filebeat-oss/filebeat.yml"
-Environment="BEAT_PATH_OPTS=-path.home /usr/share/filebeat-oss -path.config /etc/filebeat-oss -path.data /var/lib/filebeat-oss -path.logs /var/log/filebeat-oss"
-ExecStart=/usr/bin/filebeat-oss $BEAT_LOG_OPTS $BEAT_CONFIG_OPTS $BEAT_PATH_OPTS
+Environment="BEAT_PATH_OPTS=--path.home /usr/share/filebeat-oss --path.config /etc/filebeat-oss --path.data /var/lib/filebeat-oss --path.logs /var/log/filebeat-oss"
+ExecStart=/usr/bin/filebeat-oss --environment systemd $BEAT_LOG_OPTS $BEAT_CONFIG_OPTS $BEAT_PATH_OPTS
 Restart=on-failure

 [Install]