Migrate Log Analytics Job Files to Source Rules
The Centralized Log Management UI enables you to configure your log data sources using source rules. Manually created job files are no longer needed.
We recommend that you convert your log source configuration from job files (job files were used for configuration < 4.3) to source rules.
By default, the controller communicates new configuration information to the Analytics Agent every five minutes. So it could be up to five minutes before the agent starts tailing your log file using the new source rule configuration. On the other hand, if you have both a job fileanda source rule enabled for the same log data, the data is collected twice. To avoid this situation, you can use configuration settings to specify when to start collecting the log data:
- At the end of the file (UI field = Start collecting from End of log file)
- During a specific time range (UI field = Parsing time range)
See the section describing the configuration settings on the "General Configuration Tab" in Configure Log Analytics Using Source Rules.
Be sure to disable the job file once you have enabled the source rule to collect the Log Analytics data. You can verify that the new source rule is collecting data correctly by waiting until the new log records appear in the Analytics Search UI data grid. One way to distinguish between the log data collected by a job file or a source rule is to use a different source type in the source rule.