title: LOGSTASH config for xml
body: <p>I'm new to elasticsearch and logstash and I would like to create the config file for logstash that it can load the XML file data, so I can do the searching in elasticsearch using kibana. How to create this config? </p>
  
  <p>The XML file structure is :</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="ISO-8859-15"?&gt;
  
  &lt;ORDERS&gt;
  &lt;ORDER&gt;
  &lt;COMPANY_CODE&gt;CHU&lt;/COMPANY_CODE&gt;
  &lt;ETABLISSEMENET_CODE&gt;CHU&lt;/ETABLISSEMENET_CODE&gt;
  &lt;FOURNISSEUR&gt;BI&lt;/FOURNISSEUR&gt;
  &lt;DESTINATAIRE&gt;CHUSUDRUN2&lt;/DESTINATAIRE&gt;
  &lt;NUM_COMMANDE_MYTOWER&gt;342&lt;/NUM_COMMANDE_MYTOWER&gt;
  &lt;NUM_COMMANDE_CHU&gt;CMD12345&lt;/NUM_COMMANDE_CHU&gt;
  &lt;INSTRUCTIONS&gt;COLIS&lt;/INSTRUCTIONS&gt;
  &lt;ETAT&gt;4&lt;/ETAT&gt;
  &lt;DATE_DE_COMMANDE&gt;01-01-2018&lt;/DATE_DE_COMMANDE&gt;
  &lt;DATE_DE_DISPONIBILITE&gt;01-01-2018&lt;/DATE_DE_DISPONIBILITE&gt;
  &lt;MONTANT_HT&gt;3695.0&lt;/MONTANT_HT&gt;
  &lt;DATE_DE_CREATION&gt;&lt;/DATE_DE_CREATION&gt;
  &lt;POIDS_BRUT&gt;20.0&lt;/POIDS_BRUT&gt;
  &lt;NOMBRE_COLIS&gt;3&lt;/NOMBRE_COLIS&gt;
  </code></pre>
  
  <p>
  </p>