Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Meteorlog is a tool to manage CloudWatch Logs.
It defines the state of CloudWatch Logs using DSL, and updates CloudWatch Logs according to DSL.
Add this line to your application's Gemfile:
gem 'meteorlog'
And then execute:
$ bundle
Or install it yourself as:
$ gem install meteorlog
export AWS_ACCESS_KEY_ID='...'
export AWS_SECRET_ACCESS_KEY='...'
export AWS_REGION='us-east-1'
meteorlog -e -o Logsfile # export CloudWatch Logs
vi Logsfile
meteorlog -a --dry-run
meteorlog -a # apply `Logsfile` to CloudWatch Logs
Usage: meteorlog [options]
-p, --profile PROFILE_NAME
-k, --access-key ACCESS_KEY
-s, --secret-key SECRET_KEY
-r, --region REGION
-a, --apply
-f, --file FILE
--dry-run
-e, --export
-o, --output FILE
--no-color
--debug
require 'other/logsfile'
log_group "/var/log/messages" do
log_stream "my-stream"
# Please write the following if you do not want to manage log_streams
#any_log_streams
metric_filter "MyAppAccessCount" do
metric :name=>"EventCount", :namespace=>"YourNamespace", :value=>"1"
end
metric_filter "MyAppAccessCount2" do
# see http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/FilterAndPatternSyntax.html
filter_pattern '[ip, user, username, timestamp, request, status_code, bytes > 1000]'
metric :name=>"EventCount2", :namespace=>"YourNamespace2", :value=>"2"
end
end
log_group "/var/log/maillog" do
log_stream "my-stream2"
metric_filter "MyAppAccessCount" do
filter_pattern '[..., status_code, bytes]'
metric :name=>"EventCount3", :namespace=>"YourNamespace", :value=>"1"
end
metric_filter "MyAppAccessCount2" do
filter_pattern '[ip, user, username, timestamp, request = *html*, status_code = 4*, bytes]'
metric :name=>"EventCount4", :namespace=>"YourNamespace2", :value=>"2"
end
end
FAQs
Unknown package
We found that meteorlog demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.