Mexico City Splunk User Group

Primer Activo Oficial – Guía como generar trial de olly cloud y enviar eventos simples mediante CURL desde una pc

Summary: Damian Eduardo Aguilar Perez provides a detailed guide on how to create a trial account for Splunk Observability Cloud and send simple events using CURL. The process involves creating a trial account via the Splunk website and completing the registration process to receive account access. Once logged in, the user should create an ingest token and use CURL to send datapoints to the platform, confirming token functionality. Finally, it advises validating the event reception in the Splunk Observability Cloud UI, noting it may take up to 60 seconds for events to appear.
AI Summary

Objetivo

Generar un trial para tener acceso al portal de splunk observability cloud y enviar eventos simples mediante CURL.

Paso 1 – Crear cuenta Trial

Ir a:

https://www.splunk.com/en_us/download/o11y-cloud-free-trial.html

Selecciona Region

Completar registro.

Recibira un email validando el acceso al porta.

Validar acceso al portal y anotar su region, para esta url es us1:

https://app.us1.signalfx.com/#/signin

Paso 2 – Obtener Ingest Token

Una vez dentro de Splunk Observability Cloud:

1.     Ir al menú izquierdo.

2.     Seleccionar: Settings.

3.     Ir a: Access Tokens.

Crear un nuevo token (Create Token) parte superior derecha boton azul.

Marcar: INGEST token

❌ NO marcar RUM token

❌ NO usar API token with roles

✅Please accept to continue with your selection.

Ahora haz esto en la ventana de tokens debe de existir uno por default y que se creo

1.     Da clic sobre el nombre trial-ingest-token (el token que acabas de crear)

2.     Copia el valor completo del token (la cadena larga tipo HBX2auwa4Al…)

3.     Guárdalo en un bloc de notas temporalmente

Prueba con curl para confirmar que el token funciona y que O11y recibe el datapoint.

1.     Confirma tu realm

Para esta URL (app.us1.signalfx.com) el realm es: us1.

El endpoint será:

https://ingest.us1.signalfx.com/v2/datapoint

2.Ejecuta este comando (macOS / Linux)

Pega esto en Terminal (solo reemplaza TU_TOKEN_AQUI):

curl -sS -X POST "https://ingest.us1.signalfx.com/v2/datapoint" \

-H "Content-Type: application/json" \

-H "X-SF-TOKEN: TU_TOKEN_AQUI" \

-d '{

"gauge": [

{

"metric": "demo.trial.metric",

"value": 1,

"dimensions": {

"host": "any-pc",

"source": "curl"

}

}

]

}'

✅ Resultado esperado

Que te regrese:

OK

3) Validar en la UI que llegó

En Splunk Observability Cloud:

1. Metrics

2. Metric Finder

3. Busca: demo.trial.metric

4. View in chart

Puede tardar 10–60 segundos en aparecer la primera vez.

1 comment

oye como que no le sabes mano