Highlighted
Frequent Contributor.
Frequent Contributor.
565 views

Need help in reading logs from File based flex

Jump to solution

Hi,

We have developed a file based Flex connector and the flex parser is working fine.

All the logs are written to a single file (sample.log) and hence we have used "Regex File" flex connector.

When connector is started the logs are read and parsed but when the log file(sample.log) is updated the connector is not reading the updated event in log file. But if i restart the connector it will read the whole file again creatinf duplicate entries.

Kindly suggest any options to read the log file in realtime.

Regards,

Santhosh kumar

Labels (1)
0 Likes
1 Solution

Accepted Solutions
Highlighted
Respected Contributor.. Respected Contributor..
Respected Contributor..

Hi,

Try setting these parameters in agent.properties file.

  • startatend=true
  • preservestate=false
  • followexternalrotation=true
  • rotationscheme=None
  • usealternaterotationdetection=true
  • processingmode=realtime
  • processingthreshold=86400000
  • processingtimeout=3600000

Try this and let me know the result.

Regards,

Sumanth M.

View solution in original post

0 Likes
2 Replies
Highlighted
Respected Contributor.. Respected Contributor..
Respected Contributor..

Hi,

Try setting these parameters in agent.properties file.

  • startatend=true
  • preservestate=false
  • followexternalrotation=true
  • rotationscheme=None
  • usealternaterotationdetection=true
  • processingmode=realtime
  • processingthreshold=86400000
  • processingtimeout=3600000

Try this and let me know the result.

Regards,

Sumanth M.

View solution in original post

0 Likes
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

mainly you need below configuration in your agent.property file 

.preservestate=true
.processfoldersrecursively=false
.processingmode=realtime

 

Regards

Gayan

 

 

Mr
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.