diff --git a/manage-data/ingest/transform-enrich/example-enrich-data-based-on-exact-values.md b/manage-data/ingest/transform-enrich/example-enrich-data-based-on-exact-values.md index df4a96a997..f7af3da4e9 100644 --- a/manage-data/ingest/transform-enrich/example-enrich-data-based-on-exact-values.md +++ b/manage-data/ingest/transform-enrich/example-enrich-data-based-on-exact-values.md @@ -21,14 +21,14 @@ The following index API request creates a source index and indexes a new documen ```console PUT /users/_doc/1?refresh=wait_for { - "email": "mardy.brown@asciidocsmith.com", + "email": "mardy.brown@example.com", "first_name": "Mardy", "last_name": "Brown", "city": "New Orleans", "county": "Orleans", "state": "LA", "zip": 70116, - "web": "mardy.asciidocsmith.com" + "web": "mardy.example.com" } ``` @@ -83,7 +83,7 @@ Use the ingest pipeline to index a document. The incoming document should includ ```console PUT /my-index-000001/_doc/my_id?pipeline=user_lookup { - "email": "mardy.brown@asciidocsmith.com" + "email": "mardy.brown@example.com" } ``` @@ -105,14 +105,14 @@ The API returns the following response: "_primary_term": 1, "_source": { "user": { - "email": "mardy.brown@asciidocsmith.com", + "email": "mardy.brown@example.com", "first_name": "Mardy", "last_name": "Brown", "zip": 70116, "city": "New Orleans", "state": "LA" }, - "email": "mardy.brown@asciidocsmith.com" + "email": "mardy.brown@example.com" } } ``` diff --git a/solutions/observability/apm/apm-server-binary.md b/solutions/observability/apm/apm-server-binary.md index c7b1b1514d..f28f88994f 100644 --- a/solutions/observability/apm/apm-server-binary.md +++ b/solutions/observability/apm/apm-server-binary.md @@ -676,7 +676,7 @@ Set up the agent with ` + ``` diff --git a/solutions/observability/apm/apm-server-fleet-managed.md b/solutions/observability/apm/apm-server-fleet-managed.md index f6e60bb25f..1dce13a7b6 100644 --- a/solutions/observability/apm/apm-server-fleet-managed.md +++ b/solutions/observability/apm/apm-server-fleet-managed.md @@ -723,7 +723,7 @@ Set up the agent with ` + ``` diff --git a/solutions/observability/apm/configure-logstash-output.md b/solutions/observability/apm/configure-logstash-output.md index 966f351d40..2408a1eec2 100644 --- a/solutions/observability/apm/configure-logstash-output.md +++ b/solutions/observability/apm/configure-logstash-output.md @@ -288,7 +288,7 @@ To use SSL mutual authentication: ```yaml output.logstash: - hosts: ["logs.mycompany.com:5044"] + hosts: [":"] ssl.certificate_authorities: ["/etc/ca.crt"] ssl.certificate: "/etc/client.crt" ssl.key: "/etc/client.key" @@ -325,25 +325,25 @@ To use SSL mutual authentication: Before running APM Server, you should validate the {{ls}} server’s certificate. You can use `curl` to validate the certificate even though the protocol used to communicate with {{ls}} is not based on HTTP. For example: ```shell -curl -v --cacert ca.crt https://logs.mycompany.com:5044 +curl -v --cacert ca.crt : ``` -If the test is successful, you’ll receive an empty response error: +If the test is successful, you’ll receive an empty response error. Here's an example response assuming the `HOST_URL` was `logs.example.com` and `PORT` was `5044`: ```shell -* Rebuilt URL to: https://logs.mycompany.com:5044/ +* Rebuilt URL to: https://logs.example.com:5044/ * Trying 192.168.99.100... -* Connected to logs.mycompany.com (192.168.99.100) port 5044 (#0) +* Connected to logs.example.com (192.168.99.100) port 5044 (#0) * TLS 1.2 connection using TLS_DHE_RSA_WITH_AES_256_CBC_SHA -* Server certificate: logs.mycompany.com -* Server certificate: mycompany.com +* Server certificate: logs.example.com +* Server certificate: example.com > GET / HTTP/1.1 -> Host: logs.mycompany.com:5044 +> Host: logs.example.com:5044 > User-Agent: curl/7.43.0 > Accept: */* > * Empty reply from server -* Connection #0 to host logs.mycompany.com left intact +* Connection #0 to host logs.example.com left intact curl: (52) Empty reply from server ``` @@ -353,7 +353,7 @@ The following example uses the IP address rather than the hostname to validate t curl -v --cacert ca.crt https://192.168.99.100:5044 ``` -Validation for this test fails because the certificate is not valid for the specified IP address. It’s only valid for the `logs.mycompany.com`, the hostname that appears in the Subject field of the certificate. +Validation for this test fails because the certificate is not valid for the specified IP address. It’s only valid for the `logs.example.com`, the hostname that appears in the Subject field of the certificate. ```shell * Rebuilt URL to: https://192.168.99.100:5044/ diff --git a/solutions/observability/apm/create-custom-links.md b/solutions/observability/apm/create-custom-links.md index 3da14a94dc..ab0af3062a 100644 --- a/solutions/observability/apm/create-custom-links.md +++ b/solutions/observability/apm/create-custom-links.md @@ -191,5 +191,5 @@ This link opens more data on a specific `user.email`. It only appears on front-e | | | | --- | --- | | Label | `View user internally` | -| Link | `https://internal-site.company.com/user/{{user.email}}` | +| Link | `https://internal-site.example.com/user/{{user.email}}` | | Filters | `service.name:client` | \ No newline at end of file diff --git a/solutions/observability/apm/custom-filters.md b/solutions/observability/apm/custom-filters.md index 174b16b935..6aec8d78af 100644 --- a/solutions/observability/apm/custom-filters.md +++ b/solutions/observability/apm/custom-filters.md @@ -64,7 +64,7 @@ Say you decide to [capture HTTP request bodies](/solutions/observability/apm/bui ```json { - "email": "test@abc.com", + "email": "test@example.com", "password": "hunter2" } ``` @@ -206,7 +206,7 @@ POST _ingest/pipeline/apm_redacted_body_password/_simulate "http": { "request": { "body": { - "original": """{"email": "test@abc.com", "password": "hunter2"}""" + "original": """{"email": "test@example.com", "password": "hunter2"}""" } } } @@ -249,7 +249,7 @@ The API response should be similar to this: "body" : { "original" : { "password" : "redacted", - "email" : "test@abc.com" + "email" : "test@example.com" } } } diff --git a/solutions/observability/apm/elastic-apm-events-intake-api.md b/solutions/observability/apm/elastic-apm-events-intake-api.md index 5ce4d55aa7..319e2d173e 100644 --- a/solutions/observability/apm/elastic-apm-events-intake-api.md +++ b/solutions/observability/apm/elastic-apm-events-intake-api.md @@ -4428,7 +4428,7 @@ A request body example containing one event for all currently supported event ty {"metadata":{"process":{"pid":1234,"title":"/usr/lib/jvm/java-10-openjdk-amd64/bin/java","ppid":1,"argv":["-v"]},"system":{"architecture":"amd64","detected_hostname":"8ec7ceb99074","configured_hostname":"host1","platform":"Linux","container":{"id":"8ec7ceb990749e79b37f6dc6cd3628633618d6ce412553a552a0fa6b69419ad4"},"kubernetes":{"namespace":"default","pod":{"uid":"b17f231da0ad128dc6c6c0b2e82f6f303d3893e3","name":"instrumented-java-service"},"node":{"name":"node-name"}}},"service":{"name":"1234_service-12a3","version":"4.3.0","node":{"configured_name":"8ec7ceb990749e79b37f6dc6cd3628633618d6ce412553a552a0fa6b69419ad4"},"environment":"production","language":{"name":"Java","version":"10.0.2"},"agent":{"version":"1.10.0","name":"java","ephemeral_id":"e71be9ac-93b0-44b9-a997-5638f6ccfc36"},"framework":{"name":"spring","version":"5.0.0"},"runtime":{"name":"Java","version":"10.0.2"}},"labels":{"group":"experimental","ab_testing":true,"segment":5}}} {"error":{"id":"9876543210abcdeffedcba0123456789","timestamp":1571657444929001,"trace_id":"0123456789abcdeffedcba0123456789","parent_id":"9632587410abcdef","transaction_id":"1234567890987654","transaction":{"sampled":true,"type":"request"},"culprit":"opbeans.controllers.DTInterceptor.preHandle(DTInterceptor.java:73)","log":{"message":"Request method 'POST' not supported","param_message":"Request method 'POST' /events/:event not supported","logger_name":"http404","level":"error","stacktrace":[{"abs_path":"/tmp/Socket.java","filename":"Socket.java","classname":"Request::Socket","function":"connect","vars":{"key":"value"},"pre_context":["line1","line2"],"context_line":"line3","library_frame":true,"lineno":3,"module":"java.net","colno":4,"post_context":["line4","line5"]},{"filename":"SimpleBufferingClientHttpRequest.java","lineno":102,"function":"executeInternal","abs_path":"/tmp/SimpleBufferingClientHttpRequest.java","vars":{"key":"value"}}]},"exception":{"message":"Theusernamerootisunknown","type":"java.net.UnknownHostException","handled":true,"module":"org.springframework.http.client","code":42,"handled":false,"attributes":{"foo":"bar"},"cause":[{"type":"InternalDbError","message":"something wrong writing a file","cause":[{"type":"VeryInternalDbError","message":"disk spinning way too fast"},{"type":"ConnectionError","message":"on top of it,internet doesn't work"}]}],"stacktrace":[{"abs_path":"/tmp/AbstractPlainSocketImpl.java","filename":"AbstractPlainSocketImpl.java","function":"connect","vars":{"key":"value"},"pre_context":["line1","line2"],"context_line":"3","library_frame":true,"lineno":3,"module":"java.net","colno":4,"post_context":["line4","line5"]},{"filename":"AbstractClientHttpRequest.java","lineno":102,"function":"execute","vars":{"key":"value"}}]},"context":{"request":{"socket":{"remote_address":"12.53.12.1","encrypted":true},"http_version":"1.1","method":"POST","url":{"protocol":"https:","full":"https://www.example.com/p/a/t/h?query=string#hash","hostname":"www.example.com","port":8080,"pathname":"/p/a/t/h","search":"?query=string","hash":"#hash","raw":"/p/a/t/h?query=string#hash"},"headers":{"Forwarded": "for=192.168.0.1", "host":"opbeans-java:3000","content-length":"0","cookie":["c1=v1","c2=v2"],"Elastic-Apm-Traceparent":"00-8c21b4b556467a0b17ae5da959b5f388-31301f1fb2998121-01"},"cookies":{"c1":"v1","c2":"v2"},"env":{"SERVER_SOFTWARE":"nginx","GATEWAY_INTERFACE":"CGI/1.1"},"body":"HelloWorld"},"response":{"status_code":200,"headers":{"content-type":"application/json"},"headers_sent":true,"finished":true},"user":{"id":99,"username":"foo","email":"user@foo.mail"},"tags":{"organization_uuid":"9f0e9d64-c185-4d21-a6f4-4673ed561ec8"},"custom":{"my_key":1,"some_other_value":"foobar","and_objects":{"foo":["bar","baz"]}},"service":{"name":"service1","node":{"configured_name":"node-xyz"},"language":{"version":"1.2"},"framework":{"version":"1","name":"Node"}}}}} {"span":{"timestamp":1571657444929001,"type":"external","subtype":"http","id":"1234567890aaaade","transaction_id":"1234567890987654","trace_id":"abcdef0123456789abcdef9876543210","parent_id":"abcdef0123456789","action":"connect","sync":true,"name":"GET users-authenticated", "duration":3.781912,"stacktrace":[{"filename":"DispatcherServlet.java","lineno":547},{"function":"render","abs_path":"/tmp/AbstractView.java","filename":"AbstractView.java","lineno":547,"library_frame":true,"vars":{"key":"value"},"module":"org.springframework.web.servlet.view","colno":4,"context_line":"line3"}],"context":{"db":{"instance":"customers","statement":"SELECT * FROM product_types WHERE user_id = ?","type":"sql","user":"postgres","link":"other.db.com"},"http":{"url":"http://localhost:8000","status_code":302,"method":"GET","response":{"status_code":200,"transfer_size":300.12,"encoded_body_size":356,"decoded_body_size":401,"headers":{"content-type":"application/json"}}},"service":{"name":"opbeans-java-1","agent":{"version":"1.10.0-SNAPSHOT","name":"java","ephemeral_id":"e71be9ac-93b0-44b9-a997-5638f6ccfc36"}}}}} -{"transaction":{"timestamp":1571657444929001,"name":"ResourceHttpRequestHandler","type":"http","id":"4340a8e0df1906ecbfa9","trace_id":"0acd456789abcdef0123456789abcdef","parent_id":"abcdefabcdef01234567","span_count":{"started":17,"dropped":0},"duration":32.592981,"result":"HTTP2xx","sampled":true,"context":{"service":{"name":"experimental-java","agent":{"version":"1.10.0-SNAPSHOT","ephemeral_id":"e71be9ac-93b0-44b9-a997-5638f6ccfc36"}},"request":{"socket":{"remote_address":"12.53.12.1:8080","encrypted":true},"http_version":"1.1","method":"POST","url":{"protocol":"https:","full":"https://www.example.com/p/a/t/h?query=string#hash","hostname":"www.example.com","port":"8080","pathname":"/p/a/t/h","search":"?query=string","hash":"#hash","raw":"/p/a/t/h?query=string#hash"},"headers":{"user-agent":["Mozilla/5.0(Macintosh;IntelMacOSX10_10_5)AppleWebKit/537.36(KHTML,likeGecko)Chrome/51.0.2704.103Safari/537.36","MozillaChromeEdge"],"content-type":"text/html","cookie":"c1=v1,c2=v2","Elastic-Apm-Traceparent":["00-33a0bd4cceff0370a7c57d807032688e-69feaabc5b88d7e8-01"]},"cookies":{"c1":"v1","c2":"v2"},"env":{"SERVER_SOFTWARE":"nginx","GATEWAY_INTERFACE":"CGI/1.1"},"body":{"string":"helloworld","additional":{"foo":{},"bar":123,"req":"additionalinformation"}}},"response":{"status_code":200,"transfer_size":300,"encoded_body_size":356.90,"decoded_body_size":401.90,"headers":{"content-type":"application/json"},"headers_sent":true,"finished":true}, "user":{"id":"99","username":"foo","email":"foo@mail.com"},"tags":{"organization_uuid":"9f0e9d64-c185-4d21-a6f4-4673ed561ec8","tag5":null},"custom":{"my_key":1,"some_other_value":"foobar","and_objects":{"foo":["bar","baz"]},"(":"notavalidregexandthatisfine"}}}} +{"transaction":{"timestamp":1571657444929001,"name":"ResourceHttpRequestHandler","type":"http","id":"4340a8e0df1906ecbfa9","trace_id":"0acd456789abcdef0123456789abcdef","parent_id":"abcdefabcdef01234567","span_count":{"started":17,"dropped":0},"duration":32.592981,"result":"HTTP2xx","sampled":true,"context":{"service":{"name":"experimental-java","agent":{"version":"1.10.0-SNAPSHOT","ephemeral_id":"e71be9ac-93b0-44b9-a997-5638f6ccfc36"}},"request":{"socket":{"remote_address":"12.53.12.1:8080","encrypted":true},"http_version":"1.1","method":"POST","url":{"protocol":"https:","full":"https://www.example.com/p/a/t/h?query=string#hash","hostname":"www.example.com","port":"8080","pathname":"/p/a/t/h","search":"?query=string","hash":"#hash","raw":"/p/a/t/h?query=string#hash"},"headers":{"user-agent":["Mozilla/5.0(Macintosh;IntelMacOSX10_10_5)AppleWebKit/537.36(KHTML,likeGecko)Chrome/51.0.2704.103Safari/537.36","MozillaChromeEdge"],"content-type":"text/html","cookie":"c1=v1,c2=v2","Elastic-Apm-Traceparent":["00-33a0bd4cceff0370a7c57d807032688e-69feaabc5b88d7e8-01"]},"cookies":{"c1":"v1","c2":"v2"},"env":{"SERVER_SOFTWARE":"nginx","GATEWAY_INTERFACE":"CGI/1.1"},"body":{"string":"helloworld","additional":{"foo":{},"bar":123,"req":"additionalinformation"}}},"response":{"status_code":200,"transfer_size":300,"encoded_body_size":356.90,"decoded_body_size":401.90,"headers":{"content-type":"application/json"},"headers_sent":true,"finished":true}, "user":{"id":"99","username":"foo","email":"foo@example.com"},"tags":{"organization_uuid":"9f0e9d64-c185-4d21-a6f4-4673ed561ec8","tag5":null},"custom":{"my_key":1,"some_other_value":"foobar","and_objects":{"foo":["bar","baz"]},"(":"notavalidregexandthatisfine"}}}} {"metricset":{"samples":{"transaction.breakdown.count":{"value":12},"transaction.duration.sum.us":{"value":12},"transaction.duration.count":{"value":2},"transaction.self_time.sum.us":{"value":10},"transaction.self_time.count":{"value":2},"span.self_time.count":{"value":1},"span.self_time.sum.us":{"value":633.288},"byte_counter":{"value":1},"short_counter":{"value":227},"integer_gauge":{"value":42767},"long_gauge":{"value":3147483648},"float_gauge":{"value":9.16},"double_gauge":{"value":3.141592653589793},"dotted.float.gauge":{"value":6.12},"negative.d.o.t.t.e.d":{"value":-1022}},"tags":{"code":200,"success":true},"transaction":{"type":"request","name":"GET/"},"span":{"type":"db","subtype":"mysql"},"timestamp":1571657444929001}} ``` diff --git a/solutions/observability/apm/use-internal-collection-to-send-monitoring-data.md b/solutions/observability/apm/use-internal-collection-to-send-monitoring-data.md index d3b38b8780..8c1fbeb9eb 100644 --- a/solutions/observability/apm/use-internal-collection-to-send-monitoring-data.md +++ b/solutions/observability/apm/use-internal-collection-to-send-monitoring-data.md @@ -43,7 +43,7 @@ Use internal collectors to send {{beats}} monitoring data directly to your monit enabled: true cluster_uuid: PRODUCTION_ES_CLUSTER_UUID <1> elasticsearch: - hosts: ["https://example.com:9200", "https://example2.com:9200"] <2> + hosts: [":", ":"] <2> api_key: id:api_key <3> username: apm_system password: somepassword @@ -60,7 +60,7 @@ Use internal collectors to send {{beats}} monitoring data directly to your monit enabled: true cluster_uuid: PRODUCTION_ES_CLUSTER_UUID elasticsearch: - hosts: ["https://example.com:9200", "https://example2.com:9200"] + hosts: [":", ":"] username: "" ssl.certificate_authorities: ["/etc/pki/root/ca.pem"] ssl.certificate: "/etc/pki/client/cert.pem" diff --git a/solutions/observability/synthetics/configure-lightweight-monitors.md b/solutions/observability/synthetics/configure-lightweight-monitors.md index d4c1b36026..7ff7f25a55 100644 --- a/solutions/observability/synthetics/configure-lightweight-monitors.md +++ b/solutions/observability/synthetics/configure-lightweight-monitors.md @@ -403,7 +403,7 @@ $$$monitor-http-proxy_url$$$ **Example**: ```yaml - http://proxy.mydomain.com:3128 + http://proxy.example.com:3128 ``` $$$monitor-http-username$$$ @@ -496,7 +496,7 @@ check.request: headers: 'Content-Type': 'application/x-www-form-urlencoded' # urlencode the body: - body: "name=first&email=someemail%40someemailprovider.com" + body: "name=first&email=someemail%40example.com" ``` **`response`**