How to parse ccda raw xml file using logstash

Dear All.

i have some use to parse or directly point Elasticsearch to query DSL on top of raw ccda xml file.

below is the demo ccdaraw.xml file link:
link raw CCDA.xml file

Note : we have huge number of raw CCDA.xml file and we want to query DSL directly or we can create seperate index like :- demography ,medication ,result so on.....

Note : - this is very useful for healthcare industries and we are facing this issue please some help about this .

Thanks
HadoopHelp

Have you tried using an xml filter?

Hi @Badger.

Thanks

I tried but not success !!!

below is code for finding :

input {
file {
path => "D:/RameshKumar/ccdnew.xml"
sincedb_path => "CCD.xml" #removed "NULL" >AND ADDED FILE NAME
start_position => beginning

}
}
filter {
xml {
store_xml => false
source => "message"
target => "" #ADDED

xpath =>
[
"/ClinicalDocument/documentInfo/source/text()", "sourcedata",
"/ClinicalDocument/documentInfo/type/text()","type11"

		]

}

}
output {
elasticsearch {
hosts => ["localhost:9200"]
index => "healthdata11"
}
stdout
{
codec => rubydebug
}
}.

but we want to parse all tags content like result,medication,demography etc....

Thanks
HadoopHelp

Set store_xml => true and set a value for target.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.