英題:Fluentd Hacking Guide
30分しかないため斜線部分は今回省く
- Fluentd の起動シーケンスとプラグインの読み込み
Fluentd の設定ファイルのパース- Input Plugin から Output Plugin にデータが渡る流れ
| cfg, err := external.LoadDefaultAWSConfig() | |
| if err != nil { | |
| panic(err) | |
| } | |
| esCfg := elasticsearch.Config{ | |
| Transport: &awssigner.V4Signer{ | |
| RoundTripper: http.DefaultTransport, | |
| Credentials: cfg.Credentials, | |
| Region: cfg.Region, | |
| }, |
| class WrappedStreamingBody: | |
| """ | |
| Wrap boto3's StreamingBody object to provide enough | |
| fileobj functionality so that GzipFile is | |
| satisfied. Sometimes duck typing is awesome. | |
| package main | |
| import ( | |
| "net/http" | |
| "net/url" | |
| ) | |
| func main() { | |
| vals := make(url.Values, 0) |
| package main | |
| import ( | |
| "crypto/md5" | |
| "errors" | |
| "fmt" | |
| "io/ioutil" | |
| "os" | |
| "path/filepath" | |
| "sort" |
| # This is what I have so far. The Go 1.2 installation doesn't seem to be correct so it's still breaking. | |
| rm -rf /usr/local/go/src/pkg/appengine | |
| rm -rf /usr/local/go/src/pkg/appengine_internal | |
| rm /usr/local/go/src/pkg/os/error_posix.go | |
| wget -O golang-crosscompile-master.zip https://github.com/davecheney/golang-crosscompile/archive/master.zip | |
| unzip golang-crosscompile-master.zip | |
| source golang-crosscompile-master/crosscompile.bash | |
| go-crosscompile-build darwin/amd64 |
| --- | |
| - hosts: all | |
| gather_facts: no | |
| sudo: no | |
| tasks: | |
| - name: run ssh-keyscan to add keys to known_hosts | |
| local_action: shell ssh-keyscan {{ ansible_ssh_host }} >> ~/.ssh/known_hosts |
| 日時: | 2025-05-13 |
|---|---|
| 作: | 時雨堂 |
| バージョン: | 2025.3 |
| URL: | https://shiguredo.jp/ |
言語
| --- | |
| # This playbook deploys the AWX application (database, web and worker) to a | |
| # single server. | |
| - hosts: all | |
| tasks: | |
| - name: group hosts by distribution | |
| group_by: key="{{ ansible_distribution }}-{{ ansible_distribution_version }}" | |
| - hosts: RHEL-6*:CentOS-6*:SL-6* |
| - hosts: localhost | |
| connection: local | |
| vars: | |
| role: common | |
| tasks: | |
| - name: create directories for ansible files. | |
| file: path={{ item }} state=directory | |
| with_items: | |
| - group_vars | |
| - host_vars |