08-21-2019 11:22 AM
Hi all,
In our project Syslog VIs are used for logging debugging information. Now there is a need to copy a specific duration of syslog data to another file. But I am not able to locate the file where this syslog is stored. My doubts are,
P.S.: I have not used Syslog before & this part of the code was already developed, hence starting to learn now. Have referred to online links, but did not get clear information for the above questions.
Thanks,
Priyadarsini S
08-23-2019 06:38 PM
Hi Priyadarsini,
I assume you are referring to the syslog Protocol Reference Library? http://www.ni.com/example/30980/en/
I can answer your general questions, but more information will be available by reviewing the example I linked above as well as the syslog protocol.
1) Yes, the syslog data will only be stored by a syslog collector. That can be on the same physical system as the client, this is how many Linux distributions implement their local system logging.
2) Syslog entries are of the format "<12>Jul 16 14:52:34 cRIO_Controller_2 DAQ_Process: Error 54". You'll notice that the second field is the datetime that the entry was recorded. It should be a simple matter of string filtering to select only the data you are interested from a larger file. There are also third party tools readily available to assist with this.
Thanks,