Skip to main content
1-Visitor
February 14, 2016
Question

How to configure Neo4j logging settings in ThingWorx?

  • February 14, 2016
  • 3 replies
  • 4411 views

My ThingWorx server is growing Neo4j log files almost exponentially. In normal

installs

I can change configuration and control log retention, etc in neo4j.properties and cneo4j-wrapper.conf but neither appears to be available in ThingWorx installation.  Where is this configured?

3 replies

5-Regular Member
February 15, 2016

Christopher, unfortunately the Neo4j log settings are not exposed in the platform. The only logging settings you can control per se, is the ThingWorx logging itself - Subsystems -> LoggingSubsystem has settings for max log size and retention time.

chrish1-VisitorAuthor
1-Visitor
February 17, 2016

Ok. I went into Subsystems -> LoggingSubsystem and my install is configured max log size of 100000KB (100MB) according to Composer. This is the default.  Why then is my Neo logs growing to over 100GB in the ThingworxStorage/database/data directory??  How can I prevent Neo logs from generating 100's of GB of log files and overwhelming the storage on the server?

5-Regular Member
February 18, 2016

Christopher, that's the ThingWorx logs - if you go into ThingworxStorage\logs, 100mb would be the maximum size of a log file before it gets pushed into archive. Regarding the neo logs, those are the nioneo_logical logs, right? Do you have anything writing values into streams very frequently?

chrish1-VisitorAuthor
1-Visitor
February 20, 2016

Yes. Data Tables and Streams. Both are stored in Neo. This is the basis of my original question.

chrish1-VisitorAuthor
1-Visitor
August 5, 2016

Once I implemented platform-settings.json with PTC support's help; my logs started cleaning themselves up better.