Method and system for intelligent proactive error log activation
In general, embodiments of the invention relate to a method for enabling enhanced logging. The method includes obtaining a historical data for a target entity, determining an error probability of the target entity using the historical data, and enabling, based on the error probability, enhanced logging on the target entity.
1. A method for enabling enhanced logging, comprising:
obtaining historical data for a target entity;
determining an error probability of the target entity using the historical data, the determining comprising:
determining an initial state of the target entity as one selected from a group of states comprising an error state and a warning state; and
determining a transition probability for the target entity; and
enabling, based on the error probability, enhanced logging on the target entity.
2. The method of claim 1 , further comprising:
obtaining, after the enabling, second historical data for the target entity;
determining a second error probability of the target entity using the second historical data; and
deactivating, based on the second error probability, enhanced logging on the target entity on the target entity.
3. The method of claim 2 , further comprising:
after deactivating the enhanced logging, enabling non-enhanced logging on the target entity.
4. The method of claim 3 , wherein the enhanced logging comprises more granular data than the non-enhanced logging.
5. The method of claim 2 , wherein enabling, based on the error probability, the enhanced logging on the target entity comprises enabling the enhanced logging for a target period, and wherein the second error probability is determined after the target period has elapsed.
6. The method of claim 1 , wherein the transition probability specifies a first probability of the target entity transitioning from the error state to the warning state and a second probability of the target entity transitioning from the warning state to the error state.
7. The method of claim 1 , wherein the historical data comprises logs of the target entity for a prior 24 hour period.
8. The method of claim 1 , wherein the target entity is a microservice.
9. The method of claim 1 , wherein the target entity is a backup node.
10. A non-transitory computer readable medium comprising computer readable program code, which when executed by a computer processor enables the computer processor to perform a method, the method comprising:
obtaining a historical data for a target entity;
determining an error probability of the target entity using the historical data, the determining comprising:
determining an initial state of the target entity as one selected from a group of states comprising an error state and a warning state; and
determining a transition probability for the target entity; and
enabling, based on the error probability, enhanced logging on the target entity.
11. The non-transitory computer readable medium of claim 10 , the method further comprising:
obtaining, after the enabling, second historical data for the target entity;
determining a second error probability of the target entity using the second historical data; and
deactivating, based on the second error probability, the enhanced logging on the target entity on the target entity.
12. The non-transitory computer readable medium of claim 11 , the method further comprising:
after deactivating the enhanced logging, enabling non-enhanced logging on the target entity.
13. The non-transitory computer readable medium of claim 12 , wherein the enhanced logging comprises more granular data than the non-enhanced logging.
14. The non-transitory computer readable medium of claim 11 , wherein enabling, based on the error probability, the enhanced logging on the target entity comprises enabling the enhanced logging for a target period, and wherein the second error probability is determined after the target period has elapsed.
15. The non-transitory computer readable medium of claim 10 , wherein the transition probability specifies a first probability of the target entity transitioning from the error state to the warning state and a second probability of the target entity transitioning from the warning state to the error state.
16. The non-transitory computer readable medium of claim 10 , wherein the historical data comprises logs of the target entity for a prior 24 hour period.
17. The non-transitory computer readable medium of claim 10 , wherein the target entity is a microservice.
18. The non-transitory computer readable medium of claim 10 , wherein the target entity is a backup node.