It looks like it's not finding any files. Here is the code thats failing:

https://github.com/apache/lucene-solr/blob/35d8e3de6d5931bfd6cba3221cfd0dca7f97c1a1/solr/core/src/java/org/apache/solr/util/SolrLogPostTool.java#L126

A couple of things to note:

postlogs should only be run on log files. So if there are different types
of files in the directory it's pointed to it will have unexpected behavior.
So you can run it on a single log file, or a directory containing only log
files.



Joel Bernstein
http://joelsolr.blogspot.com/


On Fri, Mar 27, 2020 at 5:18 AM Kayak28 <kaya.ota....@gmail.com> wrote:

> Hello, Community:
>
> Thank you for releasing Solr 8.5.0, which contains several interesting
> tools.
>  Especially, bin/postlogs is interesting one.
> So, I have tried to run it on my computer (not-production use) as the
> following.
>
> bin/postlogs http://localhost:8983/solr/logs ./server/logs/solr
>
> The result ended in:
>
> SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
>
> SLF4J: Defaulting to no-operation (NOP) logger implementation
>
> SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further
> details.
>
> Exception in thread "main" java.lang.NullPointerException
>
> at
> org.apache.solr.util.SolrLogPostTool.gatherFiles(SolrLogPostTool.java:127)
>
> at org.apache.solr.util.SolrLogPostTool.main(SolrLogPostTool.java:65)
>
>
> Is there anything I have to do before running the postlogs command ?
>
> Sincerely,
> Kaya Ota
>
> --
>
> Sincerely,
> Kaya
> github: https://github.com/28kayak
>

Reply via email to