Support testing timestamping that is applied using an eval during indexing
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- python
- Área
- testing-qa
Línea de trabajo
No file or test path is named; start by tracing handling of timestamp_type through the indexing test flow and how props and transforms are applied. Done should include a none or random timestamp option so an eval-derived _time cannot pass because of a supplied event timestamp, with the intentionally bad replacement exposing failures.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
It seems to us that the framework is not really testing timestamp extraction as the _time test will always pass regardless of the sample and props&transforms.
Our sample:
{"RoleLocation":"South Central US","time":"##Timestamp##"}
Our transform:
INGEST_EVAL = _time=coalesce(strptime(spath(_raw, "time"), "%Y-%m-%dT%H:%M:%S.%QZ"),strptime(spath(_raw, "time"), "%m/%d/%Y %l:%M:%S %p"),_time)
Our test(token.0.replacement was intentionally set to a bad value to prove the test will always pass):
[azure_activity_log.sample]
host_type = plugin
input_type = modinput
index = main
sourcetype = azure:activity
sourcetype_to_search = azure:activity
sample_count = 1
expected_event_count = 1
timestamp_type = event
token.0.token = ##Timestamp##
token.0.replacementType = timestamp
token.0.replacement = a
token.0.field = _time
earliest = -30m
latest = -30m
See picture for Ingested event with correct timestamp(now-30min) specified by test but neither is in sample nor ingest time.

No props&transforms were added when testing.
All tests passed
@rfaircloth-splunk 's suggestion is to have a new timestamp_type that:
this would need an option for "none" or "random" so that the even level ts is either not sent or sent invalid to confirm the eval itself works
- Lenguaje dominante
- Python
- Estrellas
- 67
- Forks
- 20
- Merge medio
- 7 h 10 min
- PR fusionados (30 d)
- 3
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de splunk/pytest-splunk-addon
-
sample_generation/rule.py randint() crashes under Python 3.13 (float args no longer accepted)Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
splunk/pytest-splunk-addon#959 ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 70/100
splunk/pytest-splunk-addon#967 ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
splunk/pytest-splunk-addon#963 ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
splunk/pytest-splunk-addon#895 ·
-
enhancement major
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
splunk/pytest-splunk-addon#549 ·
Todos los issues de splunk/pytest-splunk-addon
Issues similares
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
NousResearch/hermes-agent#147104 ·
Los mantenedores suelen responder en 1 día
-
[oblt-aw][autodoc] Document new required `shared-org-key` input for `obs-aw-dependency-review`Posiblemente ocupada @github-actions la tomó hoy. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
Los mantenedores suelen responder en 1 día
-
bot-triaged module: inductor oncall: pt2 topic: fuzzer triaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
getchaintips leaves out the active tip once a header is staged on it, where Core always lists itAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
btclib-org/btclib-node#2158 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
patrick-hudson/put.gd-desktop#979 · 1 comentario ·
Los mantenedores suelen responder en 1 día