sed -i '/^old-value /s/=.*$/=new-value/' file-namecat terraform.tfvars.example
project_id = "gcp-123"
| [PARSER] | |
| Name apache | |
| Format regex | |
| Regex ^(?<host>[^ ]*) [^ ]* (?<user>[^ ]*) \[(?<time>[^\]]*)\] "(?<method>\S+)(?: +(?<path>[^\"]*?)(?: +\S*)?)?" (?<code>[^ ]*) (?<size>[^ ]*)(?: "(?<referer>[^\"]*)" "(?<agent>[^\"]*)")?$ | |
| Time_Key time | |
| Time_Format %d/%b/%Y:%H:%M:%S %z | |
| [PARSER] | |
| Name nginx | |
| Format regex |
| version: "3.5" | |
| services: | |
| fluentbit: | |
| image: cr.fluentbit.io/fluent/fluent-bit | |
| ports: | |
| - "24224:24224" | |
| - "24224:24224/udp" | |
| volumes: | |
| - ./:/fluent-bit/etc/ | |
| flog: |
Lab Link : Here
Error message : Exiting due to RSRC_INSUFFICIENT_CORES: Requested cpu count 2 is greater than the available cpus of 1
Steps :
podman machine stop
lifecycle.json and append the below into it :{
"Rules": [
{
"ID": "Delete files older than 60 days",
"Prefix": "",
"Status": "Enabled",
"Expiration":
{
| {{ define "alert_severity_prefix_emoji" -}} | |
| {{- if ne .Status "firing" -}} | |
| :white_check_mark: | |
| {{- else if eq .CommonLabels.severity "critical" -}} | |
| :red_circle: | |
| {{- else if eq .CommonLabels.severity "warning" -}} | |
| :warning: | |
| {{- end -}} | |
| {{- end -}} |
| version: '3' | |
| services: | |
| grafana: | |
| image: grafana/grafana:9.0.7 | |
| container_name: grafana | |
| ports: | |
| - 3000:3000 | |
| environment: | |
| - GF_DATABASE_NAME=grafana | |
| - GF_DATABASE_USER=postgres |