Hey guys,
I noticed this error every time I run 'sudo apt-get update' :
W: Duplicate sources.list entry https://artifacts.elastic.co/packages/5.x/apt/ stable/main amd64 Packages (/var/lib/apt/lists/artifacts.elastic.co_packages_5.x_apt_dists_stable_main_binary-amd64_Packages)
W: Duplicate sources.list entry https://artifacts.elastic.co/packages/5.x/apt/ stable/main amd64 Packages (/var/lib/apt/lists/artifacts.elastic.co_packages_5.x_apt_dists_stable_main_binary-amd64_Packages)
W: Duplicate sources.list entry https://artifacts.elastic.co/packages/5.x/apt/ stable/main i386 Packages (/var/lib/apt/lists/artifacts.elastic.co_packages_5.x_apt_dists_stable_main_binary-i386_Packages)
W: Duplicate sources.list entry https://artifacts.elastic.co/packages/5.x/apt/ stable/main i386 Packages (/var/lib/apt/lists/artifacts.elastic.co_packages_5.x_apt_dists_stable_main_binary-i386_Packages)
**W: You may want to run apt-get update to correct these problems**
What could possible be wrong here? Any idea how I can fix it?
(it says run apt-get update to correct the problem, but it doesn't make sense, as it keeps appearing every time I do so!)
Thanks,
Safa
nik9000
(Nik Everett)
April 6, 2017, 12:02pm
2
I believe that means that you two entries for our apt repository in some combination of /etc/apt/sources.list
and /etc/apt/sources.list.d/*
.
But how would I remove the duplicate?
warkolm
(Mark Walkom)
April 7, 2017, 11:55pm
4
Edit the source files(s) and remove the duplicate entries.
safasalwan
(Safa Salwan)
April 10, 2017, 11:29am
5
Hey guys, there's another error now.
When I try to start filebeat,
sudo /etc/init.d/filebeat start
this is what I get:
filebeat2017/04/10 11:25:31.465552 beat.go:339: CRIT Exiting: error loading config file: yaml: line 89: did not find expected key
Exiting: error loading config file: yaml: line 89: did not find expected key
...fail!
Line 89 is this:
template.name: "filebeat"
What is posibly the problem here?
safasalwan
(Safa Salwan)
April 10, 2017, 11:37am
7
I removed the template section and commented the output to logstash, here's what I got. Config OK. Is this enough? What should be the next step?
osboxes@osboxes:/$ sudo /etc/init.d/filebeat start
2017/04/10 11:36:02.803387 beat.go:285: INFO Home path: [/usr/share/filebeat] Config path: [/etc/filebeat] Data path: [/var/lib/filebeat] Logs path: [/var/log/filebeat]
2017/04/10 11:36:02.805473 beat.go:186: INFO Setup Beat: filebeat; Version: 5.3.0
2017/04/10 11:36:02.805584 output.go:254: INFO Loading template enabled. Reading template file: /etc/filebeat/filebeat.template.json
2017/04/10 11:36:02.806005 output.go:265: INFO Loading template enabled for Elasticsearch 2.x. Reading template file: /etc/filebeat/filebeat.template-es2x.json
2017/04/10 11:36:02.806475 client.go:123: INFO Elasticsearch url: http://localhost:9200
2017/04/10 11:36:02.806550 outputs.go:108: INFO Activated elasticsearch as output plugin.
2017/04/10 11:36:02.806648 publish.go:295: INFO Publisher name: osboxes
2017/04/10 11:36:02.806804 async.go:63: INFO Flush Interval set to: 1s
2017/04/10 11:36:02.812158 async.go:64: INFO Max Bulk Size set to: 50
Config OK
warkolm
(Mark Walkom)
April 11, 2017, 12:06am
8
You might be better off raising a new thread in #beats:filebeat
system
(system)
Closed
May 9, 2017, 12:17am
9
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.