I hereby claim:
- I am titogeorge on github.
- I am titogeo (https://keybase.io/titogeo) on keybase.
- I have a public key ASD8VbKNqu4xAbtDxBZqys5X92wa4VfL3Y9q2RQH1XfCmgo
To claim this, I am signing this object:
| APIRecordSet: | |
| Type: AWS::Route53::RecordSet | |
| Properties: | |
| HostedZoneId: !Ref hosted-zone-id | |
| Comment: CNAME Redirect to the API Gateway | |
| Name: !Join | |
| - "" | |
| - [ my-api. , !Ref hosted-zone-name, '.'] | |
| Type: CNAME | |
| TTL: '300' |
| function flatten(originalObject, newObj, keyNamePrefix) { | |
| if (newObj == undefined) { | |
| newObj = {}; | |
| } | |
| if (typeof originalObject == 'object') { | |
| for (key in originalObject) { | |
| if (typeof originalObject[key] == 'object') { | |
| let item = originalObject[key]; | |
| if (keyNamePrefix == undefined) { | |
| flatten(item, newObj, key); |
I hereby claim:
To claim this, I am signing this object:
| if [type] == 'elb-access-log' { | |
| grok { | |
| patterns_dir => "./patterns" | |
| # Different elastic-access-log patterns. look for _grokfailure tag in kibana and keep adding patterns here. | |
| match => [ "message" , [ | |
| "%{IPORHOST:elbIp} \(%{IPORHOST:clientIp}, %{IPORHOST:elbip1}\) - - \[%{HTTPDATE:timestamp}\] \"%{WORD:verb} %{NOTSPACE:request} HTTP/%{NUMBER:httpversion}\" %{NUMBER:response} %{NUMBER:bytes} %{QS:referrer} %{QS:agent}", | |
| "%{IPORHOST:elbIp} \(%{IPORHOST:clientIp}, %{IPORHOST:elbip1}\) - - \[%{HTTPDATE:timestamp}\] \"%{WORD:verb} %{NOTSPACE:request} HTTP/%{NUMBER:httpversion}\" %{NUMBER:response} - \"-\" %{QS:agent}", | |
| "%{IPORHOST:elbIp} \(%{IPORHOST:clientIp}, %{IPORHOST:elbip1}\) - - \[%{HTTPDATE:timestamp}\] \"%{WORD:verb} %{NOTSPACE:request} HTTP/%{NUMBER:httpversion}\" %{NUMBER:response} %{NUMBER:bytes} \"-\" %{QS:agent}", | |
| "%{IPORHOST:elbIp} \(%{IPORHOST:clientIp}, %{IPORHOST:clientIp1}, %{IPORHOST:elbip1}\) - - \[%{HTTPDATE:timestamp}\] \"%{WORD:verb} %{NOTSPACE:request} HTTP/%{NUM |