Skip to content

Commit

Permalink
merge in main
Browse files Browse the repository at this point in the history
  • Loading branch information
markdboyd committed Dec 20, 2024
2 parents 0c0a93d + 262280a commit 67fed00
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 14 deletions.
8 changes: 0 additions & 8 deletions jobs/ingestor_cloudwatch/templates/bin/ingestor_cloudwatch
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ export LOGSTASH_WORKERS=`grep -c ^processor /proc/cpuinfo`
<% else %>
export LOGSTASH_WORKERS=<%= p('logstash_parser.workers') %>
<% end %>
export TIMECOP_REJECT_GREATER_THAN_HOURS=<%= p('logstash_parser.timecop.reject_greater_than_hours') %>
export TIMECOP_REJECT_LESS_THAN_HOURS=<%= p('logstash_parser.timecop.reject_less_than_hours') %>
export HEAP_SIZE=$((( $( cat /proc/meminfo | grep MemTotal | awk '{ print $2 }' ) * <%= p("logstash.heap_percentage") %> ) / 100 ))K
<% if_p('logstash.heap_size') do |heap_size| %>
HEAP_SIZE=<%= heap_size %>
Expand All @@ -56,12 +54,6 @@ HEAP_SIZE=<%= heap_size %>
export <%= env.keys[0] %>="<%= env.values[0] %>"
<% end %>


# These are what changes between ingestors
<% p("logstash_parser.wait_for_templates").each do |template| %>
wait_for_template "<%= template %>"
<% end %>

export LS_JAVA_OPTS="-Xms$HEAP_SIZE -Xmx$HEAP_SIZE -DPID=$$"

# construct a complete config file from all the fragments
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,14 @@ filter

rename => {"[cloudwatch_logs][tags][OrganizationGUID]"=>"[@cf][org_id]"}
rename => {"[cloudwatch_logs][tags][Organization GUID]"=>"[@cf][org_id]"}
rename => {"[cloudwatch_logs][tags][Organizationname]"=>"[@cf][org]"}
rename => {"[cloudwatch_logs][tags][Organization name]"=>"[@cf][org]"}

rename => {"[cloudwatch_logs][tags][SpaceGUID]"=>"[@cf][space_id]"}
rename => {"[cloudwatch_logs][tags][Space GUID]"=>"[@cf][space_id]"}

rename => {"[cloudwatch_logs][tags][Spacename]"=>"[@cf][space]"}
rename => {"[cloudwatch_logs][tags][Space name]"=>"[@cf][space]"}

rename => {"[cloudwatch_logs][tags][Organizationname]"=>"[@cf][org]"}
rename => {"[cloudwatch_logs][tags][Organization name]"=>"[@cf][org]"}

rename => {"[cloudwatch_logs][tags][InstanceGUID]"=>"[@cf][service_instance_id]"}
rename => {"[cloudwatch_logs][tags][Instance GUID]"=>"[@cf][service_instance_id]"}

Expand All @@ -39,12 +37,14 @@ filter

rename => {"[cloudwatch_logs][tags][Serviceofferingname]"=>"[@cf][service_offering]"}
rename => {"[cloudwatch_logs][tags][Service offering name]"=>"[@cf][service_offering]"}

rename => {"[cloudwatch_logs][tags][Service plan name]"=>"[@cf][service_plan]"}
rename => {"[cloudwatch_logs][tags][Serviceplanname]"=>"[@cf][service_plan]"}

rename => {"[cloudwatch_logs][tags][service]"=>"broker"}

rename => {"[cloudwatch_logs][tags][broker]"=>"broker"}
rename => {"message" => "@message" }

remove_field => ["[cloudwatch_logs][tags][Createdat]"]
remove_field => ["[cloudwatch_logs][tags][Created at]"]
Expand All @@ -56,7 +56,6 @@ filter
remove_field => ["[cloudwatch_logs][tags][ServiceGUID]"]
remove_field => ["[cloudwatch_logs][tags][Service GUID]"]

rename => [ "message" => "@message" ]
}
truncate {
fields => ["@message"]
Expand Down

0 comments on commit 67fed00

Please sign in to comment.