Skip to content

Commit 46ee5d3

Browse files
authored
fix + reformat linux/macos collector commands (#119)
1 parent 6efac96 commit 46ee5d3

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

docs/quickstart/self-managed/hosts_vms.md

+10-2
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,23 @@ The quick start for Hosts / VMs with a self-managed Elastic Stack will guide you
2828
```bash
2929
ELASTICSEARCH_ENDPOINT=<ELASTICSEARCH_ENDPOINT> && \
3030
ELASTIC_API_KEY=<ELASTIC_API_KEY> && \
31-
rm ./otel.yml && cp ./otel_samples/logs_metrics_traces.yml ./otel.yml && mkdir -p ./data/otelcol && sed -i 's#\${env:STORAGE_DIR}#'"$PWD"/data/otelcol'#g' ./otel.yml && sed -i 's#\${env:ELASTIC_ENDPOINT}#$ELASTICSEARCH_ENDPOINT' ./otel.yml && sed -i 's/\${env:ELASTIC_API_KEY}/$ELASTIC_API_KEY/g' ./otel.yml
31+
cp ./otel_samples/logs_metrics_traces.yml ./otel.yml && \
32+
mkdir -p ./data/otelcol && \
33+
sed -i "s#\${env:STORAGE_DIR}#${PWD}/data/otelcol#g" ./otel.yml && \
34+
sed -i "s#\${env:ELASTIC_ENDPOINT}#${ELASTICSEARCH_ENDPOINT}#g" ./otel.yml && \
35+
sed -i "s#\${env:ELASTIC_API_KEY}#$ELASTIC_API_KEY#g" ./otel.yml
3236
```
3337

3438
*MacOS*
3539

3640
```bash
3741
ELASTICSEARCH_ENDPOINT=<ELASTICSEARCH_ENDPOINT> && \
3842
ELASTIC_API_KEY=<ELASTIC_API_KEY> && \
39-
rm ./otel.yml && cp ./otel_samples/logs_metrics_traces.yml ./otel.yml && mkdir -p ./data/otelcol && sed -i '' 's#\${env:STORAGE_DIR}#'"$PWD"/data/otelcol'#g' ./otel.yml && sed -i '' 's#\${env:ELASTIC_ENDPOINT}#'"$ELASTICSEARCH_ENDPOINT"'#g' ./otel.yml && sed -i '' 's#\${env:ELASTIC_API_KEY}#'"$ELASTIC_API_KEY"'#g' ./otel.yml
43+
cp ./otel_samples/logs_metrics_traces.yml ./otel.yml && \
44+
mkdir -p ./data/otelcol && \
45+
sed -i '' "s#\${env:STORAGE_DIR}#${PWD}/data/otelcol#g" ./otel.yml && \
46+
sed -i '' "s#\${env:ELASTIC_ENDPOINT}#${ELASTICSEARCH_ENDPOINT}#g" ./otel.yml && \
47+
sed -i '' "s#\${env:ELASTIC_API_KEY}#${ELASTIC_API_KEY}#g" ./otel.yml
4048
```
4149

4250
*Windows*

0 commit comments

Comments
 (0)