Hi folks,
I had created a logstash pattern to parse the file, when i validating it grok debugger in first it is not working but when i am removing space and then again creating space, then it is working
Your posted grok pattern seems to be failing to compile on grokdebugger, maybe you have mis-pasted it?
Anyhow the below should work (escaped the square brackets and removed the (? part).
Btw, you should consider replacing the URI pattern for the referrer field with a simple NOTSPACE one, if you a) know you are going to get legitimate links in the logs, or b) don't care about URI validation via pattern failures since it's quite more lightweight.
Hmm, weird. Both log lines work on the grokdebug for me with the pattern I posted.
Are you trying it on grokdebug or in Logstash?
If in Logstash, is there a _grokfailure tag, or errors occuring by the rest of the configuration, if any?
Can you identify the offending patterns? (the respective fields should be missing from the resulting document)
I'd try starting with just one pattern, e.g. clientip only and see how it behaves (there should be no reason for it to fail, unless there's some weird character encoding), and work my way up from there.
Thanks for the help .
I had found workaround for it copied the space from the logs itself in my pattern it is was working fine,
I think issue was that some carriage character was their in the logs.
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.