text file monitor

This is the place for developers to discuss bugs, new features and everything else about code changes.

text file monitor

Postby rgerhards on Wed Feb 13, 2008 6:03 pm

Hi all,

I am currently implementing a text file input plugin. In essence, it enables to convert any standard text file into syslog message. With standard text file I mean a file consisting of printable characters with lines delimited by LF (what a surprise... ;)).

Now, there is a first and quick look. Not stable, but workable:

http://download.rsyslog.com/rsyslog/rsy ... pre.tar.gz
md5sum 9922985281dd5313d2c9a252dd77a823

Works with a config like this (my lab sample):

$InputFileName /home/rger/proj/rsyslog/tmpin
$InputFileTag tmpin:
$InputFileStateFile tmpin
$InputRunFileMonitor

Remember: its (b)leading edge, so it may cause you troubles ;) The -pre
tarball will definitely see updates soon. I am working actively on it.

It would be great if some folks could try it out and post comments and suggestions here in this thread.

Thanks,
Rainer
User avatar
rgerhards
Site Admin
 
Posts: 1667
Joined: Thu Feb 13, 2003 11:57 am

Professional Services Information

  • Custom written rsyslog.conf?
  • Maintenance Contract?
  • Installation support?

RE: text file monitor

Postby rgerhards on Wed Feb 13, 2008 6:57 pm

User avatar
rgerhards
Site Admin
 
Posts: 1667
Joined: Thu Feb 13, 2003 11:57 am

RE: text file monitor

Postby rgerhards on Wed Feb 13, 2008 9:08 pm

I just got a bug report and have seen that I overlooked something. Here is my reply with a temporary fix (hopefully):

Ah... Damn... I overlooked a case - bleading edge, obviously. I can at the moment not access my build system. You could do me a big favor if you could comment out lines 130 and 161 in imfile. if the line offsets have changed, I am using this version here:

http://rsyslog.cvs.sourceforge.net/rsys ... iew=markup

It's the dbgoprint()'s.

That should do the trick for now... It would be great if you could tell me if it then works for you.
User avatar
rgerhards
Site Admin
 
Posts: 1667
Joined: Thu Feb 13, 2003 11:57 am

RE: text file monitor

Postby rgerhards on Thu Feb 14, 2008 11:09 am

I just posted a new, enhanced preview:

http://download.rsyslog.com/rsyslog/rsy ... pre.tar.gz
md5sum: d7b7d20d6a67fc03872edd42684f0468

Rainer
User avatar
rgerhards
Site Admin
 
Posts: 1667
Joined: Thu Feb 13, 2003 11:57 am

RE: text file monitor

Postby rgerhards on Thu Feb 14, 2008 4:48 pm

New pre tarball with feature-complete (for now) version:

http://download.rsyslog.com/rsyslog/rsy ... pre.tar.gz
md5sum: 8f01ad25cd1fffb605a179fa7c1d9a5b

Rainer
User avatar
rgerhards
Site Admin
 
Posts: 1667
Joined: Thu Feb 13, 2003 11:57 am

Google Ads



Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 0 guests

cron