login
Forgot?
Login with Facebook

Don't have an account? Register one now!

AWS S3 :: PHP script that parses log files

Bids 
3
Avg Bid
$200 USD
CLOSED
  • Project ID:

    560195
  • Project Type:

    Fixed
  • Budget:

    $30-$250 USD

Project Description:

I need a PHP script that fetches log files from a given S3 bucket, and then parses values into an array I can use for different purposes.

The script should be based on the [Amazon S3 PHP class] to download/delete/move log files on the remote S3 Bucket, so what I need is just a PHP script that executes the [S3 PHP Class] and parses and handles the log files using regex and other fancy php features. If you suggest another way to accomplish this, please collaborate.

[Script work flow:]

1. Initialize Amazon S3 PHP class

2. Set bucket name from: $_POST['bucket']; ($bucket = $_POST['bucket'];)

3. Set log file prefix from: $_POST['logfileprefix']; ($prefix = $_POST['logfileprefix'];)

4. Download all log files that are present in [$bucket], based on the file prefix [$prefix] ($prefix can for example be: "logfile_") into a sub folder of the script it self.

5. Move all log files that were downloaded from the $bucket folder and into a sub folder of the given bucket, so they are not processed next time the script runs. ($bucket."/processed_single_log_files")

6. To make the parsing job easy, I suggest compacting all log files into one big log file, before parsing it.

7. Start parsing the log files. They are "space" separated as far as I know. Check this link from Amazon AWS to learn more about the log format: http://bit.ly/4EVVGW

8. a
For each line/loop - I need all the values/fields available in an array, so I can properly insert each line into a MySQL database.

8. b
For each line/loop - I need a incremental $string/$integer that sums the total "Bytes Sent" (from the "Bytes Sent" column) for all the lines.

9. Upload the "compacted" file to a sub folder of $bucket, ($bucket."/processed_compacted_log_files")

10. You shall not covet anything that belongs to your neighbor

If you have no idea what S3 or AWS, don't bid. I need this done fast.

Skills required:

Cloud Computing, Perl, PHP

Project posted by:

gladideg Norway
(12 Reviews)

Last seen:

Public Clarification Board

2 messages

  • gladideg

    I don't see anything in your message/resume to be of any relevance to this task. Thus, I have to ask if you have any idea how to solve the project you just bid on. Please collaborate.

    Not to sound like a complete ass, but based on your $/hr, you estimate 30+ hours of work to accomplish this fairly simple task. This is more or less a job consisting of a few hours work.

    I don't see the logic.

    over 2 years ago

  • googgie

    hi,

    I am a programmer with 7 years of experience in LAMP and WAMP. Looking for long term relationships by providing good and perfect solutions to customers. please hit a reply in my email address to shine your expectations.

    these are my sample website works
    http://www.stratumsec.net/ (Drupal)
    http://www.mpowerlearning.com/ (Joomla)
    http://cohen-accountants.com/ (Joomla)

    Every second is precious

    thanks

    over 2 years ago


If you are the project creator or one of the bidders, please Log In for more options.


Awarded Bids

hughperkins United Kingdom
hughperkins
United Kingdom From United Kingdom     Offline
  Foundation EUFreelance.com Member
 Accepted
$50 in 1 day 
0
over 2 years ago
5.0

2.0

1 Review
100% Completion Rate
Sounds fairly easy. I love Amazon EC2.

All Bids ()

toinnisfree Nigeria
2011-01-301 11.08.57.jpg
toinnisfree
Nigeria From Nigeria     Gold Member     Offline
$300 in 5 days 
0
over 2 years ago
4.9

6.5

95 Reviews
74% Completion Rate
pls chk pmb
googgie India
googgie
India From India     Offline
  Foundation EUFreelance.com Member
$250 in 7 days 
0
over 2 years ago
please see my message in PMB for details, thanks