# Filebeat code=exited, status=1/FAILURE

**URL:** <https://discuss.elastic.co/t/filebeat-code-exited-status-1-failure/258926>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [December 16, 2020, 11:13pm UTC](https://discuss.elastic.co/t/filebeat-code-exited-status-1-failure/258926 "2020-12-16T23:13:08Z")\
**Posts on this page:** 5\
**Page:** 2

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [December 22, 2020, 11:48pm UTC](https://discuss.elastic.co/t/filebeat-code-exited-status-1-failure/258926/21 "2020-12-22T23:48:06Z")

</div>

Appreciate your frustration, it looks like there was a few missteps here that is causing grief 🙂

What is the output from `ls -l /var/lib/filebeat/filebeat.keystore`?

> [@dave.mc](#):
>
> Can I re-run the filebeat installer & overwrite possibly bad info?

You can. I would make sure you copy any config you need, look at removing it with the purge option of your installer (eg apt/yum/etc). Then a new install as per the docs - [Filebeat quick start: installation and configuration | Filebeat Reference [8.11] | Elastic](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-installation-configuration.html)

---

<div class="post-metadata">

**Author:** ![dave.mc](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@dave.mc](https://discuss.elastic.co/u/dave.mc)\
**Post date:** [December 23, 2020, 4:08pm UTC](https://discuss.elastic.co/t/filebeat-code-exited-status-1-failure/258926/22 "2020-12-23T16:08:58Z")

</div>

I get

```auto
ls: cannot access '/var/lib/filebeat/filebeat.keystore': Permission denied

```

So is it not there or do I just not have permission?

---

<div class="post-metadata">

**Author:** ![dave.mc](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@dave.mc](https://discuss.elastic.co/u/dave.mc)\
**Post date:** [December 23, 2020, 4:46pm UTC](https://discuss.elastic.co/t/filebeat-code-exited-status-1-failure/258926/23 "2020-12-23T16:46:49Z")

</div>

So, to purge...

I used

```auto
sudo dpkg -i filebeat-7.10.0-amd64.deb

```

to install, so I would use

```auto
sudo dpkg -P filebeat-7.10.0-amd64.deb

```

to purge? Are there any other arguments I should include?

And just to be clear - keystores are used to house secure info, correct? Because I never set anything like that up (intentionally), this is a test system that I'm learning to dump Cisco logs into & run reports on, so I don't mess up our production system. And boy am I glad I did it this way! 🙂

---

<div class="post-metadata">

**Author:** ![dave.mc](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@dave.mc](https://discuss.elastic.co/u/dave.mc)\
**Post date:** [December 28, 2020, 6:11pm UTC](https://discuss.elastic.co/t/filebeat-code-exited-status-1-failure/258926/24 "2020-12-28T18:11:57Z")

</div>

I tried the above command, but I get the following error:

```auto
dpkg: error: you mush specify packages by their own names, not by quoting the names of the files they come in

```

so I ran

```auto
sudo dpkg -l

```

to get a list of package names. I wanted to remove filebeat, so I ran

```auto
sudo dpkg -P filebeat

```

and it was successful. It did not remove the /etc/filebeat/modules.d directory as it was not empty (I'm guessing because I had edited the cisco.yml since installation), so I'll manually delete those & see what happens when I reinstall.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 25, 2021, 8:12pm UTC](https://discuss.elastic.co/t/filebeat-code-exited-status-1-failure/258926/25 "2021-01-25T20:12:03Z")

</div>

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

[Previous page](https://discuss.elastic.co/t/filebeat-code-exited-status-1-failure/258926.md?page=1)
