En cours

Need script to parse log file

Hello Bidders,

We need a script that will login to a remote nodejs server (tcpip port), parse specified log files on the local server and send data across to the remote server.

Here's the basic algorithm:

1. Read from configuration file (/etc/[url removed, login to view])

a. Rules ( regular expressions )

b. List of log files

c. Server address, port

d. Username, password

2. Tail the log files in realtime (perhaps in seperate processes)

3. Parse each line using the rules

4. Send the parsed data to the server.

[steps 2,3,4 will run indefinately]

5. If server pushes data, read header to determine type of data

a. [password] - change password in config file and reconnect to server

b. [logs] - change logs in config file and reconnect to server

c. [rules] - change rules in config file and reconnect to server

The script needs to be platform-independent. It will be run on both Windows and Linux machines

--------------------------------------------------------------------

Sample Config File

--------------------------------------------------------------------

[SERVER]

ip=[url removed, login to view]

port=2301

[AUTH]

username=log123

password=89H$843hj*($82

[LOGS]

/var/log/messages

/var/log/secure

/home/domain/access_logs/[url removed, login to view]

[RULES]

^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+(?.*)[Success|Completed|Done]

^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+(?.*)[Failed|Failure]

--------------------------------------------------------------------

Please bid reasonably. For the experienced programmer this should be a quick project.

Use PM for questions.

Thanks,

Sam..

Compétences : Javascript, Linux, PHP, Script Shell

Voir plus : using regular expressions, using expressions, sample regular expressions, regular expressions list, php programmer remote, linux regular expressions, line algorithm, algorithm programmer, algorithm header, tcpip, nodejs, nodejs server, log files, javascript nodejs, file server, data log, auth, run script linux, windows server nodejs, windows log script, server log, php sample login project, php header script, linux login script, javascript algorithm

Concernant l'employeur :
( 266 commentaires ) Las Vegas, United Arab Emirates

N° du projet : #1008201