Filter string with regex’s xquery

For my own documentation,

Pipeline OSB – string filtered

fn:replace(fn:string(fn-bea:serialize($body)), '[\s\S]*?', '--hidden--')

Splunk – XML filtered

sourcetype=osb_logger command=8108 REQ type="mo" | rex field=_raw "transaksi>(?<TRX>.*)</transaksi" | eval TRX=lower(TRX) | top limit=10 TRX
Iklan

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout /  Ubah )

Foto Google+

You are commenting using your Google+ account. Logout /  Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout /  Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout /  Ubah )

w

Connecting to %s