# Surprising error!

**URL:** <https://discuss.elastic.co/t/surprising-error/225582>\
**Category:** Logstash\
**Created:** [March 29, 2020, 8:17pm UTC](https://discuss.elastic.co/t/surprising-error/225582 "2020-03-29T20:17:12Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![GuyMuller](https://avatars.discourse-cdn.com/v4/letter/g/77aa72/32.png) [@GuyMuller](https://discuss.elastic.co/u/GuyMuller)\
**Post date:** [March 29, 2020, 8:17pm UTC](https://discuss.elastic.co/t/surprising-error/225582/1 "2020-03-29T20:17:12Z")

</div>

Hello  
I have a problem with the creation of the config file and when launching the command.  
I have this error  
"do was unexpected."  
=\> do était inattendu.

Command line : C:\Program Files\Elastic\logstash\bin\logstash -f logstash.conf  
\<  
input {

```
file {

    path > "H:/20190627 Données CLIENTS Historique Mavina.csv"

    start_position => "beginning"

    sincedb_path => "NULL"  

}

```

}

filter {

```
csv { 

    separator => ";"

    columns => [Code société";"Actif";"Somme de Feu";"Catégorie de prix";"Langue";"Code tiers";"Code titre";"Titre";"'Clients'[Nom]";"Prénom";"Compl. adresse 1";"Compl. adresse 2";"Code postal";"Rue";"No rue";"Localité";"Pays";"Téléphone";"Téléphone portable";"Fax";"Email";"Statut du contrôle de la poste";"'Table représentants'[Nom]";"Code dépôt";"PICOD";"PINO";"No facture";"Date structurée - Année";"Date structurée - Trimestre";"Date structurée - Mois";"Date structurée - No jour";"Référence";"Désignation";"Code opération";"OP";"SERIE";"Somme de Quantité";"Somme de Quantité facturée";"Devise";"Somme de Montant HT ligne";"Code HT/TVA";"Code mode de règlement";"Mode de règlement";"Code mode de transport";"Mode de transport";"TICOD";"Etat intégration"]

```

]

```
    }

}

```

output {

```
elasticsearch {

    hosts => "http://localhost:9200"

    index => "mavina"

}

```

stdout {}

}

>

---

<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:** [March 29, 2020, 11:09pm UTC](https://discuss.elastic.co/t/surprising-error/225582/2 "2020-03-29T23:09:19Z")

</div>

> [@GuyMuller](#):
>
> columns =\> [Code société"

You are missing an opening " there.

If you do not want the in-memory sincedb persisted across restarts on Windows then use "NUL", not "NULL".

What is the complete error message?

---

<div class="post-metadata">

**Author:** ![GuyMuller](https://avatars.discourse-cdn.com/v4/letter/g/77aa72/32.png) [@GuyMuller](https://discuss.elastic.co/u/GuyMuller)\
**Post date:** [March 30, 2020, 8:23am UTC](https://discuss.elastic.co/t/surprising-error/225582/3 "2020-03-30T08:23:08Z")

</div>

Hello, I made the modification, I still have this message.  
"do était inattendu"

 ![Capture](https://us1.discourse-cdn.com/elastic/original/3X/0/b/0b4aec1e18b350a329fdb981d947e72f8f5de8c9.jpeg)

> Blockquote  
> input {

```
file {

    path > "H:/20190627 Données CLIENTS Historique Mavina.csv"

    start_position => "beginning"

    sincedb_path => "NUL"  

}

```

}

filter {

```
csv { 

    separator => ";"

    columns => ["Code société";"Actif";"Somme de Feu";"Catégorie de prix";"Langue";"Code tiers";"Code titre";"Titre";"'Clients'[Nom]";"Prénom";"Compl. adresse 1";"Compl. adresse 2";"Code postal";"Rue";"No rue";"Localité";"Pays";"Téléphone";"Téléphone portable";"Fax";"Email";"Statut du contrôle de la poste";"'Table représentants'[Nom]";"Code dépôt";"PICOD";"PINO";"No facture";"Date structurée - Année";"Date structurée - Trimestre";"Date structurée - Mois";"Date structurée - No jour";"Référence";"Désignation";"Code opération";"OP";"SERIE";"Somme de Quantité";"Somme de Quantité facturée";"Devise";"Somme de Montant HT ligne";"Code HT/TVA";"Code mode de règlement";"Mode de règlement";"Code mode de transport";"Mode de transport";"TICOD";"Etat intégration"]

```

]

```
    }

}

```

output {

```
elasticsearch {

    hosts => "http://localhost:9200"

    index => "mavina"

}

```

stdout {}

}

---

<div class="post-metadata">

**Author:** ![GuyMuller](https://avatars.discourse-cdn.com/v4/letter/g/77aa72/32.png) [@GuyMuller](https://discuss.elastic.co/u/GuyMuller)\
**Post date:** [March 30, 2020, 8:25am UTC](https://discuss.elastic.co/t/surprising-error/225582/4 "2020-03-30T08:25:56Z")

</div>

Question:  
The config file should be placed in which folder?  
Bin or Config?

---

<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:** [March 30, 2020, 3:08pm UTC](https://discuss.elastic.co/t/surprising-error/225582/5 "2020-03-30T15:08:20Z")

</div>

I don't think the error is anything to do with your configuration. I think it is a more fundamental problem with running logstash.

---

<div class="post-metadata">

**Author:** ![GuyMuller](https://avatars.discourse-cdn.com/v4/letter/g/77aa72/32.png) [@GuyMuller](https://discuss.elastic.co/u/GuyMuller)\
**Post date:** [March 30, 2020, 3:30pm UTC](https://discuss.elastic.co/t/surprising-error/225582/6 "2020-03-30T15:30:36Z")

</div>

![Capture](https://us1.discourse-cdn.com/elastic/original/3X/8/8/88fea7b74b182a06f2f40752c199e944f7487996.jpeg) OK,  
Thanks a lot for your help.  
What test can I do?  
Java : Picture

I installed JRuby because I had a message "He couldn't find jRuby"

> 

rem ### 3: set jruby

set JRUBY\_BIN="%LS\_HOME%\vendor\bundle\jruby-9.2.11.1"  
if not exist %JRUBY\_BIN% (  
echo "could not find jruby in %LS\_HOME%\vendor\bundle\jruby\2.5.0\bin\jruby" 1\>&2  
exit /b 1  
)

> 

If you need other parameters, I am at your disposal.  
Greetings  
Guy Muller

---

<div class="post-metadata">

**Author:** ![GuyMuller](https://avatars.discourse-cdn.com/v4/letter/g/77aa72/32.png) [@GuyMuller](https://discuss.elastic.co/u/GuyMuller)\
**Post date:** [March 31, 2020, 8:13pm UTC](https://discuss.elastic.co/t/surprising-error/225582/7 "2020-03-31T20:13:14Z")

</div>

Hello, I reinstall everything, Elastic, logstash, I have a new error

Error: unable to find or load the main class Files\Elastic\logstash-7.6.2\logstash-7.6.2\logstash-core\lib\jars\animal-sniffer-annotations-1.14.jar;C:\Program

 ![Capture](https://us1.discourse-cdn.com/elastic/original/3X/2/6/2645a4a088c3a952791d3015be8e62a5d4c27d3d.jpeg)  
thank you in advance

---

<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:** [March 31, 2020, 8:29pm UTC](https://discuss.elastic.co/t/surprising-error/225582/8 "2020-03-31T20:29:43Z")

</div>

That looks like an error in quoting in the batch script that sets up the command line.

---

<div class="post-metadata">

**Author:** ![GuyMuller](https://avatars.discourse-cdn.com/v4/letter/g/77aa72/32.png) [@GuyMuller](https://discuss.elastic.co/u/GuyMuller)\
**Post date:** [April 2, 2020, 7:17pm UTC](https://discuss.elastic.co/t/surprising-error/225582/9 "2020-04-02T19:17:50Z")

</div>

hello !?!?!  
[2020-04-02T21:10:54,813][ERROR][logstash.agent] Failed to execute action {:action=\>LogStash::PipelineAction::Create/pipeline\_id:main, :exception=\>"LogStash::ConfigurationError", :message=\>"Expected one of [\t\r\n], "#", "=\>" at line 3, column 14 (byte 35) after input {\r\n file {\r\n path ", :backtrace=\>["C:/logstash/logstash-core/lib/logstash/compiler.rb:41:in `compile_imperative'", "C:/logstash/logstash-core/lib/logstash/compiler.rb:49:in `compile\_graph'", "C:/logstash/logstash-core/lib/logstash/compiler.rb:11:in `block in compile_sources'", "org/jruby/RubyArray.java:2580:in `map'", "C:/logstash/logstash-core/lib/logstash/compiler.rb:10:in `compile_sources'", "org/logstash/execution/AbstractPipelineExt.java:161:in `initialize'", "org/logstash/execution/JavaBasePipelineExt.java:47:in `initialize'", "C:/logstash/logstash-core/lib/logstash/java_pipeline.rb:27:in `initialize'", "C:/logstash/logstash-core/lib/logstash/pipeline\_action/create.rb:36:in `execute'", "C:/logstash/logstash-core/lib/logstash/agent.rb:326:in `block in converge\_state'"]}  
[2020-04-02T21:10:55,283][INFO][logstash.agent] Successfully started Logstash API endpoint {:port=\>9600}

---

<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:** [April 2, 2020, 8:20pm UTC](https://discuss.elastic.co/t/surprising-error/225582/10 "2020-04-02T20:20:57Z")

</div>

> [@GuyMuller](#):
>
> path \> "H:/20190627 Données CLIENTS Historique Mavina.csv"

That should be =\>, not just \>

---

<div class="post-metadata">

**Author:** ![GuyMuller](https://avatars.discourse-cdn.com/v4/letter/g/77aa72/32.png) [@GuyMuller](https://discuss.elastic.co/u/GuyMuller)\
**Post date:** [April 3, 2020, 12:38pm UTC](https://discuss.elastic.co/t/surprising-error/225582/11 "2020-04-03T12:38:57Z")

</div>

Hello,  
it's almost ok !!!  
In the first line was not priced as a definition of the fields.  
Here is an example of a recording.  
thank you in advance

 ![Capture](https://us1.discourse-cdn.com/elastic/original/3X/9/f/9fc6869a2febdeaeb34f27db90d9786e981f3913.jpeg)

---

<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:** [May 1, 2020, 12:39pm UTC](https://discuss.elastic.co/t/surprising-error/225582/12 "2020-05-01T12:39:15Z")

</div>

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