# Ogstash.javapipeline \]\[main\] Pipeline aborted due to error {:pipeline\_id=\>"main", :exception=\>#\<LogStash::Json::ParserError: Unexpected character ('\<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')

**URL:** <https://discuss.elastic.co/t/ogstash-javapipeline-main-pipeline-aborted-due-to-error-pipeline-id-main-exception-logstash-unexpected-character-code-60-expected-a-valid-value-number-string-array-object-true-false-or-null/220465>\
**Category:** Logstash\
**Created:** [February 22, 2020, 12:02am UTC](https://discuss.elastic.co/t/ogstash-javapipeline-main-pipeline-aborted-due-to-error-pipeline-id-main-exception-logstash-unexpected-character-code-60-expected-a-valid-value-number-string-array-object-true-false-or-null/220465 "2020-02-22T00:02:49Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![saidjon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/saidjon/32/63134_2.png) [@saidjon](https://discuss.elastic.co/u/saidjon)\
**Post date:** [February 22, 2020, 12:02am UTC](https://discuss.elastic.co/t/ogstash-javapipeline-main-pipeline-aborted-due-to-error-pipeline-id-main-exception-logstash-unexpected-character-code-60-expected-a-valid-value-number-string-array-object-true-false-or-null/220465/1 "2020-02-22T00:02:50Z")

</div>

hi there . im trying to import data to elastic cloud but getting this error .

my conf file looks like this

\</\>

input{  
file{  
path =\> "/home/saidjon/Downloads/big\_data/urbandict-word-defs.csv"  
start\_position =\> "beginning"  
sincedb\_path =\> "NUL"

```
}

```

}

filter{  
csv{ columns =\> ['word\_id','word','up\_votes','down\_votes','author','definition']  
}  
}

output{

```
	elasticsearch{
		hosts => ["https://elastic host :9243"]
		 user => "xxx"
		 password => "xxxx"
		index => "upc_words"
	}

```

}

this keeps getting error . ogstash.javapipeline ][main] Pipeline aborted due to error {:pipeline\_id=\>"main", :exception=\>#\<LogStash::Json::ParserError: Unexpected character ('\<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')

but when i try to import into local elastic host with this conf (changing only host of course) it works .  
please help . it's been two days i am stuck here , no progress , searched , tried every answer no hope ,  
looking forward to get some help , cheers.

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [February 22, 2020, 12:43am UTC](https://discuss.elastic.co/t/ogstash-javapipeline-main-pipeline-aborted-due-to-error-pipeline-id-main-exception-logstash-unexpected-character-code-60-expected-a-valid-value-number-string-array-object-true-false-or-null/220465/2 "2020-02-22T00:43:16Z")

</div>

My guess is that [https://elastic](https://elastic) host :9243 is returning HTML. The output expects it to send JSON. Conceivably an authentication error. Does elasticsearch log anything when you start logstash?

---

<div class="post-metadata">

**Author:** ![ropc](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ropc/32/47022_2.png) [@ropc](https://discuss.elastic.co/u/ropc)\
**Post date:** [February 22, 2020, 1:58am UTC](https://discuss.elastic.co/t/ogstash-javapipeline-main-pipeline-aborted-due-to-error-pipeline-id-main-exception-logstash-unexpected-character-code-60-expected-a-valid-value-number-string-array-object-true-false-or-null/220465/3 "2020-02-22T01:58:14Z")

</div>

Hi @saidjon, welcome to our community forums!

From what I understand, if you change the `hosts` value to the Elasticsearch Service endpoint URL, then you are encountering this issue. I am not sure if that would help but you could take a look at our [documentation](https://www.elastic.co/guide/en/cloud/current/ec-logstash.html#ec_example_sending_logs_to_elasticsearch_logstash_version_2_0_and_later). I am just wondering whether the `hosts` value you specified is correct or not.

If you are still encountering any problems, can you run Logstash with debug logging and provide the logs here (please remove any sensitive information)? For example:

- `bin/logstash --debug -f <PATH_TO_CONFIG_FILE>`

Thank you.

---

<div class="post-metadata">

**Author:** ![saidjon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/saidjon/32/63134_2.png) [@saidjon](https://discuss.elastic.co/u/saidjon)\
**Post date:** [February 22, 2020, 9:45am UTC](https://discuss.elastic.co/t/ogstash-javapipeline-main-pipeline-aborted-due-to-error-pipeline-id-main-exception-logstash-unexpected-character-code-60-expected-a-valid-value-number-string-array-object-true-false-or-null/220465/4 "2020-02-22T09:45:25Z")

</div>

hi @ropc , thanks for your reply. i uploaded the whole log to github ,its too long too post it here . can you look at it [https://github.com/saidjons/elastic\_cloud\_error](https://github.com/saidjons/elastic_cloud_error)

---

<div class="post-metadata">

**Author:** ![saidjon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/saidjon/32/63134_2.png) [@saidjon](https://discuss.elastic.co/u/saidjon)\
**Post date:** [February 22, 2020, 9:46am UTC](https://discuss.elastic.co/t/ogstash-javapipeline-main-pipeline-aborted-due-to-error-pipeline-id-main-exception-logstash-unexpected-character-code-60-expected-a-valid-value-number-string-array-object-true-false-or-null/220465/5 "2020-02-22T09:46:47Z")

</div>

yeah , it 's responding with html output , i tried with new password , but its the same ,

---

<div class="post-metadata">

**Author:** ![ropc](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ropc/32/47022_2.png) [@ropc](https://discuss.elastic.co/u/ropc)\
**Post date:** [February 22, 2020, 10:26am UTC](https://discuss.elastic.co/t/ogstash-javapipeline-main-pipeline-aborted-due-to-error-pipeline-id-main-exception-logstash-unexpected-character-code-60-expected-a-valid-value-number-string-array-object-true-false-or-null/220465/6 "2020-02-22T10:26:45Z")

</div>

@saidjon Thank you for the logs provided.

1. I see that you are using the [Cloud ID](https://www.elastic.co/guide/en/cloud/current/ec-cloud-id.html#ec-cloud-id-logstash). That can be useful in certain scenarios as described in the `note` section in the documentation I just shared.

2. Your `hosts` value in the Elasticsearch output plugin actually points to your Kibana endpoint URL. This is where the problem lies. You need to use the Elasticsearch endpoint URL. You can find it in your Elasticsearch Service Console by browsing to:

- Deployments =\> `<deployment_name>` =\> Elasticsearch and click on `Copy Endpoint URL`.

Use this endpoint URL as the `hosts` value in your Elasticsearch output plugin and you should be good to go.

---

<div class="post-metadata">

**Author:** ![saidjon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/saidjon/32/63134_2.png) [@saidjon](https://discuss.elastic.co/u/saidjon)\
**Post date:** [February 22, 2020, 12:21pm UTC](https://discuss.elastic.co/t/ogstash-javapipeline-main-pipeline-aborted-due-to-error-pipeline-id-main-exception-logstash-unexpected-character-code-60-expected-a-valid-value-number-string-array-object-true-false-or-null/220465/7 "2020-02-22T12:21:26Z")

</div>

Oh man . What a stupid error from me . Thank you so much to point it out. It's working.

---

<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:** [March 21, 2020, 12:21pm UTC](https://discuss.elastic.co/t/ogstash-javapipeline-main-pipeline-aborted-due-to-error-pipeline-id-main-exception-logstash-unexpected-character-code-60-expected-a-valid-value-number-string-array-object-true-false-or-null/220465/8 "2020-03-21T12:21:27Z")

</div>

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