Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Allow target to the root of the document

Aperta
#16 1 commento 8 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
42/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
ruby
Ambito
data

Direzione di ricerca

La issue nomina il plugin Ruby e il relativo parametro target, ma non indica alcun file o test. Inizia individuando la gestione del target e gli split-filter test esistenti; il lavoro è completo quando viene supportato un target a livello root che produce eventi contenenti i campi di ogni elemento dell'array senza il wrapper MyArray.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement

Input like this:

{ "MyArray": [ { "id": 1}, { "id": 2} ] }

will correctly make two events, but the data from the array will be location under a field named "MyArray", e.g.:

{
    "MyArray": {
        "id": 1
    }
},
{
    "MyArray": {
        "id": 2
    }
}

While you can specify a 'target' param to put the field somewhere else, there's no info on how to put the new fields at the root level of the new events, e.g.

{
    "id": 1
},
{
    "id": 2
}

This would prevent people from having to drop into ruby to move an arbitrary list of fields.

Lingua principale
Ruby
Stelle
6
Fork
29
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di logstash-plugins/logstash-filter-split

Tutte le issue di logstash-plugins/logstash-filter-split

Issue simili

Altre issue su Ruby

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.