Load an xml files

i want to load a 100 xml files in the same time using logstash, so what i should to add in my config file!.

You will probably need to use a file input and then an xml filter.

i already load the first xml file using config file with input filter nd output but i want to create a config file that allow me to load all the xml files in the same time

Have you tried a wildcard path in the file input?

no i dint . this is my config file :

input {
file {
path => "D:/test001.xml",
start_position => beginning
sincedb_path => "NUL"
codec => multiline {
pattern => "|"
negate => "true"
what => "previous"
auto_flush_interval => 1
max_lines => 3000


filter {
xml {
source => "message"
target => "message.parsed"
store_xml => false
force_array => false



output {
stdout { codec => rubydebug }
elasticsearch {
index => "tizer005"
hosts => ["localhost:9200"]
document_type => "ChannelFiles"

OK, so if all the XML files are in the root of the D: drive then try

path => "D:/test*.xml"

i try it using csv files but it doesn t work :frowning:

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