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

推荐订阅源

B
Blog RSS Feed
量子位
Y
Y Combinator Blog
大猫的无限游戏
大猫的无限游戏
B
Blog
U
Unit 42
C
Check Point Blog
I
InfoQ
aimingoo的专栏
aimingoo的专栏
雷峰网
雷峰网
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 【当耐特】
人人都是产品经理
人人都是产品经理
The Cloudflare Blog
H
Help Net Security
MongoDB | Blog
MongoDB | Blog
博客园 - Franky
H
Hackread – Cybersecurity News, Data Breaches, AI and More
J
Java Code Geeks
Microsoft Azure Blog
Microsoft Azure Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
云风的 BLOG
云风的 BLOG
宝玉的分享
宝玉的分享
爱范儿
爱范儿

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]