Is there a way to Reload NXlog Config using <Schedule>?

Tags:

#1 Jwaldon-oti

Im looking for ways to reload nxlog config globally using the <schedule> option without having to restart the service or use the 'Update and Reload' button in nxlog manager.

Is there a certain paramerter that can be used in the conf file that will do this on a specific cadence?

#2 KlevinDeactivated Nxlog ✓
#1 Jwaldon-oti
Im looking for ways to reload nxlog config globally using the <schedule> option without having to restart the service or use the 'Update and Reload' button in nxlog manager. Is there a certain paramerter that can be used in the conf file that will do this on a specific cadence?

Hello Sir,

Yes you can use module_restart , so instead of restarting the agent service you can stop, start or restart the module itself.

  <Schedule>
      #Schedule for starting the in module
      When 30 * * * *
      Exec in->module_restart();
      Exec log_info("================ Module is active ================");
   </Schedule>

Hope it helps Sincerely Klevin