Apt-get update Elastic ERROR!

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

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?

Edit the source files(s) and remove the duplicate entries.

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?

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


You might be better off raising a new thread in #beats:filebeat :slight_smile:

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.