You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@solr.apache.org by "Kakolu, Karthik" <ka...@autozone.com> on 2021/12/03 15:55:54 UTC

Not able to write solr logs in json format

Hi,

Trying to write solr.log in json format but unsuccessful.
Any pointers on the same would be appreciated.

Also JsonLayout in 8.10 was not able to get it working as suggested in the solr document.

<RollingFile name="RollingJsonFile" fileName="${sys:solr.log.dir}/solr.json.log" filePattern="${sys:solr.log.dir}/solr.json.log.%i" >
      <JsonTemplateLayout eventTemplateUri="classpath:LogstashJsonEventLayoutV1.json" />
      <Policies>
        <OnStartupTriggeringPolicy />
        <SizeBasedTriggeringPolicy size="32 MB"/>
      </Policies>
      <DefaultRolloverStrategy max="10"/>
    </RollingFile>

Thanks
Karthik

Re: Not able to write solr logs in json format

Posted by Andy Lester <an...@petdance.com>.

> On Dec 3, 2021, at 9:55 AM, Kakolu, Karthik <ka...@autozone.com> wrote:
> 
> Trying to write solr.log in json format but unsuccessful.


How exactly are you unsuccessful?

Do you get logs but they aren’t in JSON as expected? If so, what format are they in?

Are you able to write logs in other formats than JSON?

Do you get any logs at all?