How to collect logs from log files that is not .log format?

(Betbevn) #1

Hello everyone,

I’m using collector sidecar to collect logs. The log files I want to collect are in the following format and they are recorded by date. But they seem to be formatted in a different way (not .log fromat).

I tried to configure it in different ways, but it does not work.

Can you help me? Thanks a lot!

(Jochen) #2

FWIW, your pattern for the log files location (['/opt/SUNWwbsvr/https-IPortal/errors.*.']) doesn’t match the file names of the log files (which do not end in a dot).

(Betbevn) #3

Thanks jochen for your reply! I solved the problem using the following path [’/opt/SUNWwbsvr/https-IPortal/errors]. But now i have a new problem. On another server,I collected the log as shown

If i use path [’/data1/AppData/data/logs/PORTAL/ * / * '] All log files will be collected. But I just want to receive log portal20180129.out format. Log files are recorded by date.

I look forward to listening to your reply!


Are “/data1/AppData/data/logs/PORTAL/*/portal.*.out” or “/data1/AppData/data/logs/PORTAL/*/portal.*” not working?

(Betbevn) #5

Yes, Do you have any idea?

(Jochen) #6

Please elaborate on what you’ve tried so far and what you want to achieve exactly.

(system) closed #7

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.