2016-08-08 6 views
0

Ich arbeite mit Elastic Suche Logstash, holt Updates aus Orcal-Datenbank in elastische Suche. Mein Problem ==> wie sql_last_start UTC Zeit Parameter mit orcal Zeitstempel zu konfigurieren.Elastische Suche Logstash Wie konfiguriere ich die UTC-Zeit nach orcal-Zeitstempel?

Das ist mein configration ====>

input{ 
jdbc { 
    . 
    . 
    . 
statement => "select * from cm.ELSAYED WHERE 'TIMESTAMP' > ':sql_last_start'" 
} 
} 
filter { 
date { 
    match => [ "TIMESTAMP", "YYYY-MM-dd HH:mm:ss.ssssssssssssss Z" ] 
    target => "TIMESTAMP" 
    timezone => "UTC" 
    } 
} 
+0

Können Sie einen Beispielwert für Zeitstempel? –

+0

Orakel Zeitstempel ist ==> 08-AUG-16 12.26.03.796000000 PM --------------------------------- ---------------------------------- sql_last_start ist ===> 2016-08-08 14: 44: 22.037000000 Z – Elsayed

+0

Also welche endet in TIMESTAMP? –

Antwort

Verwandte Themen