TIBCO LogLogic Universal Collector allows users to collect and send Windows data, syslog data and file-based log data to an LMI server. When collecting the File-based log data, UC provides users with two options. Remote File and Real Time File. When users intend to constantly collect and send line by line information from a file, they should choose the Real Time file option. When creating a Real Time file rule, users need to specify the path in which the file is located. Under the real time file collection option users can use the native windows path format of '
<Drive>:\<Directory>\<Directory>\<File>.<Extension>' to collect and send data from that file. For example if a file is located in the following path: ' C:\user1\Desktop\test.txt' providing the same path under the 'File path' option will be accepted as a valid syntax. The image below shows the correct syntax to use for Real Time File option. Under Remote file option, there are two sub options, first being '
File' and the next being a '
Directory'. File option requires an absolute path to the file itself and Directory option requires the path to the directory inside which one or more files exists. In either of these cases, the syntax to provide the path format is different from what native Windows path shows. If the file exists in a path as follows: '
C:\user\desktop\file.txt' and if users wish to configure a remote file rule with '
File' option the path will need to be provided to UC as follows: '
C:/user/desktop/file.txt'. The image below shows the comparison of using the wrong syntax vs the correct syntax:
The same applies when users choose '
Directory' option under which the path needs to be provided with
' / ' instead of
' \ ' separators. When using
'Directory' option, users need to ensure to trail the last directory with a
' / ' and failing to do so will cause UC to throw the same error. For example, if the file exists in
'C:\user\desktop' directory, the correct syntax to provide that path would be
'C:/user/desktop/'. If users provide the path as
'C:/user/desktop' that will end up causing the invalid directory path error. The image below shows the comparison between using the correct syntax vs using the wrong syntax: