[2022-01-23T21:09:36,704][ERROR][logstash.config.sourceloader] Could not fetch all the sources {:exception=>LogStash::ConfigLoadingError, :message=>"The following config files contains non-ascii characters but are not UTF-8 encoded ["c:/logstash-7.16.3/config/logstash.conf"]", :backtrace=>["C:/logstash-7.16.3/logstash-core/lib/logstash/config/source/local.rb:99:in read'", "C:/logstash-7.16.3/logstash-core/lib/logstash/config/source/local.rb:110:in read'", "C:/logstash-7.16.3/logstash-core/lib/logstash/config/source/local.rb:206:in local_pipeline_configs'", "C:/logstash-7.16.3/logstash-core/lib/logstash/config/source/local.rb:177:in pipeline_configs'", "C:/logstash-7.16.3/logstash-core/lib/logstash/config/source_loader.rb:76:in block in fetch'", "org/jruby/RubyArray.java:2584:in collect'", "C:/logstash-7.16.3/logstash-core/lib/logstash/config/source_loader.rb:75:in fetch'", "C:/logstash-7.16.3/logstash-core/lib/logstash/agent.rb:182:in converge_state_and_update'", "C:/logstash-7.16.3/logstash-core/lib/logstash/agent.rb:120:in execute'", "C:/logstash-7.16.3/logstash-core/lib/logstash/runner.rb:432:in block in execute'", "C:/logstash-7.16.3/vendor/bundle/jruby/2.5.0/gems/stud-0.0.23/lib/stud/task.rb:24:in `block in initialize'"]}
Most of Special Character is Output Normal (Ex) "/", "#", "@", "!"
This is really weird, I simulated with the same symbol in the pipeline and it worked without any problem.
But I'm on a Linux system and from the output of @aaron-nimocks example, he is on a Mac, which is Unix based, maybe it is something related to how windows is encoding the configuration file, this can give some problems in some cases.
You could try to not use the ∮ char but use its unicode code, you would need to replace it with another character to use in the split filter.
Just one thing to avoid confusion which is the character that you want to use in the split filter?
Your original message is that ID∮NAME∮TELNO, so you would split on this character ∮, which is a math symbol representing a contour integral.
But your last message you shared this other symbol §, which is a different one, this is a section sign, used to reference individual sections on a document, they look similar but are completely different.
The gsub approach still work, you just would need to use the correct code, if this is indeed the split character.
"/", "#", "@", "!" are ASCII characters and could make no error.
There are some encodings which share ASCII part of character codes with UTF-8 and other part are completely different. One example is Shift-JIS in Japan and there maybe some for other CJK characters.
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.