Support testing timestamping that is applied using an eval during indexing
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- python
- Ambito
- testing-qa
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
- Lingua principale
- Python
- Stelle
- 67
- Fork
- 20
- Merge medio
- 7h 10m
- PR unite (30g)
- 3
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di splunk/pytest-splunk-addon
-
sample_generation/rule.py randint() crashes under Python 3.13 (float args no longer accepted)Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
splunk/pytest-splunk-addon#959 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 70/100
splunk/pytest-splunk-addon#967 ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
splunk/pytest-splunk-addon#963 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
splunk/pytest-splunk-addon#895 ·
-
enhancement major
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
splunk/pytest-splunk-addon#549 ·
Tutte le issue di splunk/pytest-splunk-addon
Issue simili
-
bug P1
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
Toloka/tolokaforge#1947 ·
I maintainer di solito rispondono entro 1 giorno
-
SageMaker provider: streaming fails with NoStreamDataError on DJL Serving (LMI) endpointsForse già presa @balajiaru l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
UKGovernmentBEIS/inspect_ai#6127 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
pydot/pydot#601 · 4 commenti ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
letsencrypt/cp-cps#361 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100