28 lines
466 B
PHP
Executable File
28 lines
466 B
PHP
Executable File
#!/usr/bin/env php
|
|
<?php
|
|
/**
|
|
* worker.php
|
|
*
|
|
* @copyright 2024 Fairbanks Publishing LLC
|
|
* @license Proprietary
|
|
*/
|
|
|
|
/*
|
|
* list files in fairbanks-publishing-cloudtrail/fluent-bit-logs
|
|
* process each file
|
|
* delete completed files
|
|
*/
|
|
|
|
require __DIR__ . '/vendor/autoload.php';
|
|
|
|
use MakerDave\OpenSearchIngest\S3Source;
|
|
use Dotenv\Dotenv;
|
|
|
|
chdir(__DIR__);
|
|
|
|
$env = Dotenv::createImmutable(__DIR__);
|
|
$env->safeLoad();
|
|
|
|
$source = new S3Source();
|
|
$source->process();
|