Hi, I used the dissect filter and it worked .Now it does not.
The only change is the upgrate of mac Os Catalina to mac OS Big Sur v 11.4
A message is displayed : Dissector mapping field not found in event
Could you help me.
PG
Hi, I used the dissect filter and it worked .Now it does not.
The only change is the upgrate of mac Os Catalina to mac OS Big Sur v 11.4
A message is displayed : Dissector mapping field not found in event
Could you help me.
PG
Can you post your config/sample data and a few log messages from logstash?
Dissector mapping field not found in event
means that the field that you are trying to dissect is not in the data that is being ingested.
Have you looked at your data in the standard output to ensure your incoming data has not changed since your upgrade?
here my logstash config :input{
stdin{}
}
filter {
dissect {
mapping => {
"message" => '%{?messageBis} <form %{messageBis1}'
"messageBis1" => '%{field1}%{?field2}%{field3}%{?field4}%{field5}'
}
remove_field => ["message"]
}
}
output {
stdout { codec => rubydebug }
}
And a part of my sample
Créée le | 2013-05-23 09:32:20 | |||
Libellé | thermocouples | |||
Etat actuel | 0 | |||
Commentaire | ||||
Service | /DR/ICAA | |||
Nom du rédacteur | Sawsane NAKOUZI | |||
Numéro commande | ||||
Bénéficiaire |
|
|||
Délai de livraison | 91468 | |||
Code analytique principal | ARMINES-CROMEP | |||
Code analytique secondaire | ||||
Pieces jointes | Aucune |
Informations sur le fournisseur | |
---|---|
Nom | NEWPORT OMEGA |
Adresse * | 11 rue Jacques Cartier 78280 GUYANCOURT France |
Téléphone | 0161372900 |
Fax | 0130575427 |
Type de la DA |
|
||
Ctre commun Armines | |||
No Contrat | 92751 | ||
Nom Contrat | Toshiba | ||
Financement (Inv.DR) |
Achat relevant de la procédure d'hygiène et sécurité | OUI | NON |
---|
N° | Désignation | Code nomenclature | Référence | Quantité | PU HT | TVA | Total HT | Total TTC | |||
---|---|---|---|---|---|---|---|---|---|---|---|
1 | Alumel | TFAL-003-100 | 1.00 | 29.00 | 19.6 | 29.00 | 34.68 | ||||
2 | chromel | TFCY-003-100 | 1.00 | 29.00 | 19.6 | 29.00 | 34.68 | ||||
TOTAUX (EUR) |
11.36
|
58
|
69.36
|
||||||||
ATTENTION, Cette application n'est a utiliser QUE POUR LES DA CNRS ou ARMINES RAPSODEE, mais PAS POUR CELLES ARMINES ICAA OU EPA !!! | |||||||||||
Pour TOUTES les autres DA : https://sirepa-prod.mines-telecom.fr | |||||||||||
HistoriqueCopier |
Descriptif technique |
Fournisseurs consultés |
Raisons du choix du fournisseur |
Historique de la DA No 17758 à partir de l'état 1 | |||
---|---|---|---|
Date | Auteur | Commentaire | Etat final |
It worked, why it does not ?
My guess is that this field is the one that is complaining about because messageBis1
is not a standard field. It may be a good idea to disable all filters and just have an input/output in your logstash config and see what logstash is getting.
I get the differents fields indicated in the config and I have to keep on going the sample 'dissection.
{
"@version" => "1",
"field3" => "\n<td valign=\"top\">\n<table class=\"DA_DG\">\n<th class=\"soustitre\" colspan=2>Informations sur le fournisseur \n<input class=\"petit_bouton\" type=button onClick=\"recherche('fournisseur')\" value=\"...\">\n<td class=\"libelle\">Nom\n <input type=hidden id=\"four_nom\" name=\"four_nom\" value=\"GROSSERON SAS\">\n \n <td class=\"lecture_seule\"> GROSSERON SAS\n <td class=\"libelle\">Adresse *\n<textarea class='normal' name='four_adr' id='four_adr'rows=3\">ZAC Hauts de Coueron III - Secteur 4\r\n4 rue des entrepreneurs\r\n44220 COU\xCBRON - FRANCE<td class=\"libelle\">T\xE9l\xE9phone\n <input type=hidden id=\"four_tel\" name=\"four_tel\" value=\"33 (0) 2 40 92 07 09\">\n \n <td class=\"lecture_seule\"> 33 (0) 2 40 92 07 09\n <td class=\"libelle\">Fax\n <input type=hidden id=\"four_fax\" name=\"four_fax\" value=\"33 (0) 2 40 92 07 10\">\n \n <td class=\"lecture_seule\"> 33 (0) 2 40 92 07 10\n ",
"@timestamp" => 2021-03-19T16:45:01.499Z,
"field5" => "<td class=\"libelle\">Ctre commun Armines\n <input type=hidden id=\"ccarmines\" name=\"ccarmines\" value=\"\">\n \n <td class=\"lecture_seule\"> \n <td class=\"libelle\">No Contrat\n <input type=hidden id=\"code_contrat\" name=\"code_contrat\" value=\"20000270\">\n \n <td class=\"lecture_seule\"> 20000270\n <td class=\"libelle\">Nom Contrat\n <input type=hidden id=\"nom_contrat\" name=\"nom_contrat\" value=\"MAANEO\">\n \n <td class=\"lecture_seule\"> MAANEO\n <td class=\"libelle\">Financement (Inv.DR)\n <input type=hidden id=\"financement_dr\" name=\"financement_dr\" value=\"\">\n \n <td class=\"lecture_seule\"> \n <td colspan=\"2\"><table width=\"100%\" bgcolor=\"pink\">\n\n\n\n
Achat relevant de la proc\xE9dure d'hygi\xE8ne et s\xE9curit\xE9 | <input name='hygiene' type=radio value=\"1\">OUI | <input name='hygiene' type=radio value=\"0\" CHECKED>NON |
---|
etc ...
I got and now it does not work.
Oh I see.
Can you please post more detailed log entries of the error you are getting?
Sure.
Here more details
WARN ][org.logstash.dissect.Dissector][main] Dissector mapping, field found in event but it was empty {"field"=>"message", "event"=>{"host"=>"I5951.local", "message"=>"", "@version"=>"1", "@timestamp"=>2021-07-20T13:33:15.563Z, "tags"=>["_dissectfailure"]}}
[2021-07-20T15:33:16,933][WARN ][org.logstash.dissect.Dissector][main] Dissector mapping, field not found in event {"field"=>"messageBis1", "event"=>{"host"=>"I5951.local", "message"=>"", "@version"=>"1", "@timestamp"=>2021-07-20T13:33:15.563Z, "tags"=>["_dissectfailure"]}}
[2021-07-20T15:33:16,943][WARN ][org.logstash.dissect.Dissector][main] Dissector mapping, pattern not found {"field"=>"message", "pattern"=>"%{?messageBis} <form %{messageBis1}", "event"=>{"host"=>"I5951.local", "message"=>" ", "@version"=>"1", "@timestamp"=>2021-07-20T13:33:15.609Z, "tags"=>["_dissectfailure"]}}
[2021-07-20T15:33:16,946][WARN ][org.logstash.dissect.Dissector][main] Dissector mapping, field not found in event {"field"=>"messageBis1", "event"=>{"host"=>"I5951.local", "message"=>" ", "@version"=>"1", "@timestamp"=>2021-07-20T13:33:15.609Z, "tags"=>["_dissectfailure"]}}
[2021-07-20T15:33:16,950][WARN ][org.logstash.dissect.Dissector][main] Dissector mapping, pattern not found {"field"=>"message", "pattern"=>"%{?messageBis} <form %{messageBis1}", "event"=>{"host"=>"I5951.local", "message"=>" ", "@version"=>"1", "@timestamp"=>2021-07-20T13:33:15.609Z, "tags"=>["_dissectfailure"]}}
The first indicates, as it says, that the [message] is empty.
The second suggests that you are assuming that your dissect always works, and then trying a second dissect even when the field it tries to dissect was not created by the first dissect. You should check whether the field exists.
The third tell you that the [message] field contains a single space, so the pattern does not match.
Yes the pattern does not work now but it did with the same sample and the same code.The only change I do is the upgrade of mac OS.coud it be the reason of that?
OK I will come back to work
Night advises.Thank tou very much for your answers.
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.