This repository has been archived by the owner on Dec 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
added grok rules and created logstack-shipper in dev #45
Merged
+166
−20
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
4dee428
add drain from development
Jin-Sun-tts 25826d9
add development
Jin-Sun-tts 698ac79
pin localstack version to 1.2.0
Jin-Sun-tts a7611f2
add plugins.zip
Jin-Sun-tts ff080dd
change the way to get the drain-plugin
Jin-Sun-tts f8ac517
remove test files
Jin-Sun-tts b19a8a0
update localstack/localstack compose setting
FuhuXia a1343f5
Merge remote-tracking branch 'origin/add-development-ssb' into fix-lo…
FuhuXia 9a97515
Revert "pin localstack version to 1.2.0"
FuhuXia a9dee26
Merge pull request #47 from GSA/fix-localstack
Jin-Sun-tts 931142d
add grok rules to filter the log message
Jin-Sun-tts 6718f2b
modified for development-ssb
Jin-Sun-tts e2e8c76
add more grok rule for http request
Jin-Sun-tts a8ea8a5
reverted for staging still use maangement shipper for drain logs
Jin-Sun-tts b43fac0
ignore files
Jin-Sun-tts 25287b2
remove .DS_Store
Jin-Sun-tts b160e5c
drop Ngnixlog message, and also drop logstack-shipper message with 20…
Jin-Sun-tts 623738e
added skip rules for some log messge
Jin-Sun-tts 1fefd04
remove license key
Jin-Sun-tts 61b7eb3
modified grok rule and exclude fields in non-development env
Jin-Sun-tts File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
--- | ||
name: dev-deploy | ||
|
||
on: | ||
push: | ||
branches: | ||
- development | ||
workflow_dispatch: | ||
|
||
jobs: | ||
create-cloudgov-services-development-ssb: | ||
name: create services (development-ssb) | ||
environment: development-ssb | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v2 | ||
- name: create services | ||
uses: cloud-gov/cg-cli-tools@main | ||
with: | ||
command: ./create-cloudgov-services.sh | ||
cf_org: gsa-datagov | ||
cf_space: development-ssb | ||
cf_username: ${{secrets.CF_SERVICE_USER}} | ||
cf_password: ${{secrets.CF_SERVICE_AUTH}} | ||
|
||
deploy-development-ssb: | ||
name: deploy (development-ssb) | ||
environment: development-ssb | ||
runs-on: ubuntu-latest | ||
needs: | ||
- create-cloudgov-services-development-ssb | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v2 | ||
- name: build dependencies | ||
run: | | ||
chmod -R 777 logstash | ||
PWD=`pwd` make logstash-installation | ||
- name: deploy-logstash | ||
uses: cloud-gov/cg-cli-tools@main | ||
with: | ||
command: cf push --vars-file vars.development-ssb.yml --strategy rolling | ||
cf_org: gsa-datagov | ||
cf_space: development-ssb | ||
cf_username: ${{secrets.CF_SERVICE_USER}} | ||
cf_password: ${{secrets.CF_SERVICE_AUTH}} | ||
- name: smoke test logstash | ||
run: | | ||
sleep 150 # Logstash is very slow to start up | ||
[ "401" = "$(curl -w '%{http_code}' --output /dev/null --silent https://logstash-development-datagov.app.cloud.gov)" ] | ||
|
||
drain-apps-in-development: | ||
name: drain everything in development space | ||
environment: development-ssb | ||
runs-on: ubuntu-latest | ||
needs: | ||
- deploy-development-ssb | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v2 | ||
- name: drain-development-space | ||
uses: cloud-gov/cg-cli-tools@main | ||
with: | ||
command: | | ||
apt-get install -y jq && | ||
curl -L -o drain-plugin https://github.com/cloudfoundry/cf-drain-cli/releases/download/v2.0.0/cf-drain-cli-linux && | ||
cf install-plugin -f -r drain-plugin && | ||
rm -f drain-plugin && | ||
mkdir -p /root/.cf/ && touch /root/.cf/config.json && | ||
./create-space-drain.sh development-ssb | ||
cf_org: gsa-datagov | ||
cf_space: development | ||
cf_username: ${{secrets.CF_SERVICE_USER}} | ||
cf_password: ${{secrets.CF_SERVICE_AUTH}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
logstash/logstash-oss-*-linux-x86_64.tar.gz | ||
logstash/plugins.zip | ||
logstash/awscliv2.zip | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
# Name prefix for applications in the logstack. | ||
app_name: logstack | ||
|
||
# Options to pass the JVM | ||
logstash_java_options: -Xms512m -Xmx512m | ||
# Number of instances of the Logstash to run. | ||
logstash_instances: 1 | ||
# Amount of memory to provide to the Logstash (Java) application. | ||
logstash_memory: 1024 | ||
# Assign route for the log shipper. This will be used as the logdrain for other | ||
# Cloud Foundry applications. | ||
hostname: logstash-development-datagov | ||
domain: app.cloud.gov | ||
https_proxy: | ||
|
||
# Optional license key for delivering logs to New Relic | ||
# See https://github.com/newrelic/logstash-output-plugin | ||
logstash_newrelic_license_key: | ||
logstash_newrelic_log_uri: https://gov-log-api.newrelic.com/log/v1 |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to setup similar things for staging and prod?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that exists above in
deploy.yml
, as far as I can tell. Would it be beneficial then to combine them and makeenviron
a variable?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Staging and prod setup are already included in the deploy.yml file. For debug purpose we separate development out so we may test/debug any changes push to development brunch first instead of master brunch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems worthwhile to merge and road test in development. If we want to consolidate in the future, we can do so.