# Fetched an invalid config

**URL:** <https://discuss.elastic.co/t/fetched-an-invalid-config/77464>\
**Category:** Logstash\
**Created:** [March 6, 2017, 9:17am UTC](https://discuss.elastic.co/t/fetched-an-invalid-config/77464 "2017-03-06T09:17:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mattiabbate](https://avatars.discourse-cdn.com/v4/letter/m/e274bd/32.png) [@mattiabbate](https://discuss.elastic.co/u/mattiabbate)\
**Post date:** [March 6, 2017, 9:17am UTC](https://discuss.elastic.co/t/fetched-an-invalid-config/77464/1 "2017-03-06T09:17:33Z")

</div>

Hello all,  
Please, can you help me to resolve this problem?  
I've installed Only Logstash 5.2.1 in a Windows 8.1.

This is my CONFIG file:  
########################################################

input {  
file {  
path =\> "C:\var\log\xmltest\_2.xml"  
start\_position =\> "beginning"  
type =\> "ticket"  
codec =\> multiline

```
          pattern => "^<\?H_Ticket .*\>"
          negate => true
          what => "previous"
        
   }
  }

```

filter  
{  
xml  
{  
source =\> "ticket"  
xpath =\>  
{  
"/ticket/IDH\_Ticket/text()", "ticketId",  
"/ticket/CodeBus/text()", "codeBus",  
"/ticket/CodeCh/text()", "codeCh",  
"/ticket/CodeConv/text()", "codeConv",  
"/ticket/Codeligne/text()", "codeLigne",  
"/ticket/Date/text()", "date",  
"/ticket/Heur/text()", "heure",  
"/ticket/NomFR1/text()", "nomFR1",  
"/ticket/NomFR2/text()", "nomFR2",  
"/ticket/Prix/text()", "prix",  
"/ticket/IDTicket/text()", "idTicket",  
"/ticket/CodeRoute/text()", "codeRoute",  
"/ticket/origine/text()", "origine",  
"/ticket/Distination/text()", "destination",  
"/ticket/Num/text()", "num",  
"/ticket/Ligne/text()", "ligne",  
"/ticket/requisition/text()", "requisition",  
"/ticket/voyage/text()", "voyage",  
"/ticket/faveur/text()", "faveur"  
}  
store\_xml =\> true  
target =\> "doc"  
}  
}

output {  
stdout { codec =\> rubydebug }  
}

########################################################

when I try to launch logstash, this outputs:

C:\logstash-5.2.1\>bin\logstash -f C:\logstash-5.2.1\myfile\_conf\xmltest\_2.conf  
[2017-03-06T10:06:41,578][ERROR][logstash.agent] fetched an invalid config {:config=\>"input { \n file {\n path =\> "C:\var\log\xmlt  
est\_2.xml"\n start\_position =\> "beginning"\n type =\> "ticket"\n codec =\> multiline \n \n pattern =\> "^\<\?H\_Ti  
cket .\*\\>"\n negate =\> true\n what =\> "previous"\n \n }\n }\nfilter \n{\n xml \n {\n  
source =\> "ticket"\n xpath =\> \n {\n "/ticket/IDH\_Ticket/text()", "ticketId",\n "/ticket/CodeBus/text()",  
"codeBus",\n "/ticket/CodeCh/text()", "codeCh",\n "/ticket/CodeConv/text()", "codeConv",\n "/ticket/Codeli  
gne/text()", "codeLigne",\n "/ticket/Date/text()", "date",\n "/ticket/Heur/text()", "heure",\n "/ticket/N  
omFR1/text()", "nomFR1",\n "/ticket/NomFR2/text()", "nomFR2",\n "/ticket/Prix/text()", "prix",\n "/ticket  
/IDTicket/text()", "idTicket",\n "/ticket/CodeRoute/text()", "codeRoute",\n "/ticket/origine/text()", "origine",\n  
"/ticket/Distination/text()", "destination",\n "/ticket/Num/text()", "num",\n "/ticket/Ligne/text()", "ligne  
",\n "/ticket/requisition/text()", "requisition",\n "/ticket/voyage/text()", "voyage",\n "/ticket/faveur/te  
xt()", "faveur"\n }\n store\_xml =\> true\n target =\> "doc"\n }\n}\n\noutput {\n stdout { codec =\> rubydebug }\n}\n", :rea  
son=\>"Expected one of #, =\> at line 21, column 40 (byte 408) after filter \n{\n xml \n {\n source =\> "ticket"\n xpath =\> \n  
{\n "/ticket/IDH\_Ticket/text()""}

Thanks a lot

Mattia

---

<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 3, 2017, 9:17am UTC](https://discuss.elastic.co/t/fetched-an-invalid-config/77464/2 "2017-04-03T09:17:39Z")

</div>

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