Method and system for parameterizing log file location assignments for a log analytics system
First Claim
Patent Images
1. A method comprising:
- storing a log collection configuration associated with a plurality of log collection targets, the log collection configuration comprising;
a first included file name pattern, comprising (a) a first fixed portion and (b) a first variable portion, corresponding to a first set of one or more log files to include in log collection;
a first excluded file name pattern, comprising (a) a second fixed portion and (c) a second variable portion, corresponding to a second set of one or more log files to exclude from the log collection;
based at least on the log collection configuration;
replacing the first variable portion, in the first included file name pattern, with a first value associated with a particular log collection target in the plurality of log collection targets, to obtain a second included file name pattern;
replacing the second variable portion, in the first excluded file name pattern, with a second value associated with the particular log collection target, to obtain a second excluded file name pattern;
wherein the second set of one or more log files stored at a second set of one or more file locations that match the second excluded file name pattern are removed from the first set of one or more log files stored at a first set of one or more file locations that match the second included file name pattern to identify a third set of one or more log files to be collected;
transmitting to or storing on the particular log collection target, information including the second included file name pattern and the second excluded file name pattern for collecting the third set of one or more log files.
1 Assignment
0 Petitions
Accused Products
Abstract
Disclosed is a system, method, and computer program product for implementing a log analytics method and system that can configure, collect, and analyze log records in an efficient manner. The log analytics system, method, and computer program product provide target-based configuration of log monitoring metadata. Variable pathnames (e.g., having variables instead of absolute pathnames) may be specified to identify a directory that contains log files to monitor.
64 Citations
21 Claims
-
1. A method comprising:
-
storing a log collection configuration associated with a plurality of log collection targets, the log collection configuration comprising; a first included file name pattern, comprising (a) a first fixed portion and (b) a first variable portion, corresponding to a first set of one or more log files to include in log collection; a first excluded file name pattern, comprising (a) a second fixed portion and (c) a second variable portion, corresponding to a second set of one or more log files to exclude from the log collection; based at least on the log collection configuration; replacing the first variable portion, in the first included file name pattern, with a first value associated with a particular log collection target in the plurality of log collection targets, to obtain a second included file name pattern; replacing the second variable portion, in the first excluded file name pattern, with a second value associated with the particular log collection target, to obtain a second excluded file name pattern; wherein the second set of one or more log files stored at a second set of one or more file locations that match the second excluded file name pattern are removed from the first set of one or more log files stored at a first set of one or more file locations that match the second included file name pattern to identify a third set of one or more log files to be collected; transmitting to or storing on the particular log collection target, information including the second included file name pattern and the second excluded file name pattern for collecting the third set of one or more log files. - View Dependent Claims (2, 3, 4, 5, 6, 19, 20, 21)
-
-
7. One or more non-transitory machine-readable media storing instructions which, when executed by one or more processors, cause:
-
storing a log collection configuration associated with a plurality of log collection targets, the log collection configuration comprising; a first included file name pattern, comprising (a) a first fixed portion and (b) a first variable portion, corresponding to a first set of one or more log files to include in log collection; a first excluded file name pattern, comprising (a) a second fixed portion and (c) a second variable portion, corresponding to a second set of one or more log files to exclude from the log collection; based at least on the log collection configuration; replacing the first variable portion, in the first included file name pattern, with a first value associated with a particular log collection target in the plurality of log collection targets, to obtain a second included file name pattern; replacing the second variable portion, in the first excluded file name pattern, with a second value associated with the particular log collection target, to obtain a second excluded file name pattern; wherein the second set of one or more log files stored at a second set of one or more file locations that match the second excluded file name pattern are removed from the first set of one or more log files stored at a first set of one or more file locations that match the second included file name pattern to identify a third set of one or more log files to be collected; transmitting to or storing on the particular log collection target, information including the second included file name pattern and the second excluded file name pattern for collecting the third set of one or more log files. - View Dependent Claims (8, 9, 10, 11, 12)
-
-
13. A system, comprising:
-
at least one device including a hardware processor; the system being configured to perform operations comprising; storing a log collection configuration associated with a plurality of log collection targets, the log collection configuration comprising; a first included file name pattern, comprising (a) a first fixed portion and (b) a first variable portion, corresponding to a first set of one or more log files to include in log collection; a first excluded file name pattern, comprising (a) a second fixed portion and (c) a second variable portion, corresponding to a second set of one or more log files to exclude from the log collection; based at least on the log collection configuration; replacing the first variable portion, in the first included file name pattern, with a first value associated with a particular log collection target in the plurality of log collection targets, to obtain a second included file name pattern; replacing the second variable portion, in the first excluded file name pattern, with a second value associated with the particular log collection target, to obtain a second excluded file name pattern; wherein the second set of one or more log files stored at a second set of one or more file locations that match the second excluded file name pattern are removed from the first set of one or more log files stored at a first set of one or more file locations that match the second included file name pattern to identify a third set of one or more log files to be collected; transmitting to or storing on the particular log collection target, information including the second included file name pattern and the second excluded file name pattern for collecting the third set of one or more log files. - View Dependent Claims (14, 15, 16, 17, 18)
-
Specification