This article applies to:
• Onboarding/Data Ingestion
• Product edition: Starting Proxy 11.1
• Feature Category: Proxy
Overview
With metrics we have different methods to send metrics to the Proxy without the need to deploy a whole integration or further configuration. With Logs something similar can be done.
This is useful for troubleshooting. If you don’t see your data on the Logs Browser, you might not know if there’s a problem with the log shipper or with the Wavefront proxy.
Procedure
To confirm that the Wavefront proxy is sending data, follow these steps:
- Run the following curl command to send a log to the proxy as a JSON payload:
curl --location --request POST 'http://<Proxy_Host>:<Proxy_Port>/logs/json_array?f=logs_json_arr' \
--header 'Content-Type: application/json' \
--data-raw '[
{
"message": "test message",
"source": "localhost",
"application": "test_application",
"test_label": "label1"
}
]'
From the above command example, if you are running the proxy locally and using port 2878 URL should be changed to:
http://localhost:2878/logs/json_array?f=logs_json_arr
Result:
curl --location --request POST 'http://localhost:2878/logs/json_array?f=logs_json_arr' \
--header 'Content-Type: application/json' \
--data-raw '[
{
"message": "test message",
"source": "localhost",
"application": "test_application",
"test_label": "label1"
}
]'
After this you can see in the Proxy logs, logs being processed:
Also, from UI:
Comments