# Logstash....... Error: Could not find or load main class SEARCH

**URL:** <https://discuss.elastic.co/t/logstash-error-could-not-find-or-load-main-class-search/223264>\
**Category:** Logstash\
**Created:** [March 12, 2020, 7:04am UTC](https://discuss.elastic.co/t/logstash-error-could-not-find-or-load-main-class-search/223264 "2020-03-12T07:04:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![usman\_malik](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/usman_malik/32/64297_2.png) [@usman\_malik](https://discuss.elastic.co/u/usman_malik)\
**Post date:** [March 12, 2020, 7:04am UTC](https://discuss.elastic.co/t/logstash-error-could-not-find-or-load-main-class-search/223264/1 "2020-03-12T07:04:05Z")

</div>

Here i'm facing this error when i'm running my logstash.conf file

![logstash](https://us1.discourse-cdn.com/elastic/original/3X/d/f/df665477425fe2a0366e24786d8d73184e911d76.png)

here is my logstash.conf file:

![logstashconf](https://us1.discourse-cdn.com/elastic/original/3X/3/b/3b54ac0a26b1e2416b147209900333cb162f97dd.png)

---

<div class="post-metadata">

**Author:** ![ITIC](https://avatars.discourse-cdn.com/v4/letter/i/90ced4/32.png) [@ITIC](https://discuss.elastic.co/u/ITIC)\
**Post date:** [March 12, 2020, 7:25am UTC](https://discuss.elastic.co/t/logstash-error-could-not-find-or-load-main-class-search/223264/2 "2020-03-12T07:25:44Z")

</div>

Hi @usman_malik

Welcome to the community.

First things first. Please, do not post images of text. The proper way to post this type of information is to copy the text and paste it, then using the "\</\> " tool to format it.

Now, since you are trying your hand at `logstash`, start with something simpler, that does not involve other components of the ELK stack. To that end, I suggest you comment out or remove the `elasticsearch{}` output plugin and use `stdout{}` plugin in its stead. This will give you all output from `logstash` right in your console for you to read (and to paste here if needed 😉 )

Your error seems to indicate issues with the "Elasticsearch" installation. A quick google search gave some references to the path having spaces, or something. I user neither `Elasticsearch` , windows for my `logstash` instances or, gosh forbid, spaces in my paths, so I won't be of much assistance. I suggest you move this thread to the 'Elasticsearch' category.

Best regards.

---

<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:** [April 9, 2020, 7:25am UTC](https://discuss.elastic.co/t/logstash-error-could-not-find-or-load-main-class-search/223264/3 "2020-04-09T07:25:45Z")

</div>

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