-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Populate Severity Fields from the AWS CloudWatch logs using transform processor #27071
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Pinging code owners for processor/transform: @TylerHelmuth @kentquirk @bogdandrutu @evan-bradley. See Adding Labels via Comments if you do not have permissions to add labels yourself. |
@shiva-fyers I believe you can accomplish your goal using |
The Collector doesn't even start when using : but starts with : Is this related to this #23238 |
Oh, I needed to do |
@shiva-fyers Have you been able to try the |
Hey @crobert-1 I was able to run it. Forgot to close this. Apologies. Thanks everyone. |
Component(s)
receiver/awscloudwatch
What happened?
Description
I am using the
awscloudwatchreceiver
to fetch logs from AWS CloudWatch.A log entry looks something like this
[2023-09-22 07:38:22,570] INFO [GroupCoordinator 2]: Assignment received from leader consumer-amazon.msk.canary.group.broker-1-2686-5f4d4078-4257-41ed-a38d-baed4f17396f for group amazon.msk.canary.group.broker-1 for generation 100469. The group has 1 members, 0 of which are static. (kafka.coordinator.group.GroupCoordinator)
The
awscloudwatchreceiver
works fine and is able to pick logs.But severity fields comes as
SeverityText:
(empty)SeverityNumber: Unspecified(0)
Expected Result
I want to pick the the log level and populate the severity fields from the log body itself, currently which looks like this.
Was hoping to achieve this using the transform processor, but not sure what exact query to be written. Can someone please help me with this ?
Thanks and Regards
Collector version
v0.83.0
Environment information
OS
NAME="Amazon Linux"
VERSION="2"
ID="amzn"
ID_LIKE="centos rhel fedora"
VERSION_ID="2"
PRETTY_NAME="Amazon Linux 2"
ANSI_COLOR="0;33"
CPE_NAME="cpe:2.3⭕amazon:amazon_linux:2"
HOME_URL="https://amazonlinux.com/"
OpenTelemetry Collector configuration
Log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: