# Getting logstasg error in rhel 8 and not running in logstash in rhel 8

**URL:** <https://discuss.elastic.co/t/getting-logstasg-error-in-rhel-8-and-not-running-in-logstash-in-rhel-8/338480>\
**Category:** Logstash\
**Created:** [July 16, 2023, 8:28am UTC](https://discuss.elastic.co/t/getting-logstasg-error-in-rhel-8-and-not-running-in-logstash-in-rhel-8/338480 "2023-07-16T08:28:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![talbehat](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/talbehat/32/84367_2.png) [@talbehat](https://discuss.elastic.co/u/talbehat)\
**Post date:** [July 16, 2023, 8:28am UTC](https://discuss.elastic.co/t/getting-logstasg-error-in-rhel-8-and-not-running-in-logstash-in-rhel-8/338480/1 "2023-07-16T08:28:21Z")

</div>

Logstash is not running in rhel 8 and getting error while start logstash.

logstash version :- 7.4.3

[ERROR] 2023-07-15 18:52:56.228 [main] Logstash - java.lang.IllegalStateException: Logstash stopped processing because of an error: (GemspecError)  
[!] There was an error while loading `elasticsearch-api.gemspec`: No such file or directory - git. Bundler cannot continue.

# from /opt/vendor/elasticsearch-api-5.0.5/elasticsearch-api.gemspec:15

# -------------------------------------------

# 

> s.files = `git ls-files`.split($/)

# s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) }

# -------------------------------------------

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [July 16, 2023, 2:15pm UTC](https://discuss.elastic.co/t/getting-logstasg-error-in-rhel-8-and-not-running-in-logstash-in-rhel-8/338480/2 "2023-07-16T14:15:51Z")

</div>

Hello,

Please share the entire Logstash log and provide more context on how you installed Logstash and how you are running it, the path you shared is not the default for any type of installation.

---

<div class="post-metadata">

**Author:** ![talbehat](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/talbehat/32/84367_2.png) [@talbehat](https://discuss.elastic.co/u/talbehat)\
**Post date:** [July 17, 2023, 4:15am UTC](https://discuss.elastic.co/t/getting-logstasg-error-in-rhel-8-and-not-running-in-logstash-in-rhel-8/338480/3 "2023-07-17T04:15:39Z")

</div>

Hi,

This is complete logs.

Running Logstash :- bin/logstash -f "config/file"

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [July 17, 2023, 4:28am UTC](https://discuss.elastic.co/t/getting-logstasg-error-in-rhel-8-and-not-running-in-logstash-in-rhel-8/338480/4 "2023-07-17T04:28:47Z")

</div>

> [@talbehat](#):
>
> This is complete logs.

You will probably have a lot more lines, please run it again to get more logs and share them using the preformatted text option, the `</>` button.

> [@talbehat](#):
>
> bin/logstash -f "config/file

What does your config file looks like? Please share it using the preformatted text option.

Also, how you installed it?

---

<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:** [August 14, 2023, 4:29am UTC](https://discuss.elastic.co/t/getting-logstasg-error-in-rhel-8-and-not-running-in-logstash-in-rhel-8/338480/5 "2023-08-14T04:29:06Z")

</div>

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