It doesn't work. It even can't parse ',' separated file.
really-really-weird behaviour.
Here is a code to write the file:
fileWriter.append(
Arrays.asList(entry.getProperties().getCellId(),
c1.get(0),c1.get(1),
c2.get(0),c2.get(1),
c3.get(0),c3.get(1),
c4.get(0),c4.get(1)
)
.stream().map(Object::toString).collect(Collectors.joining(","))+"\r\n"
I changed '\t' to ',' doesn't help.
\n to \r\n doesn't help
Now splunk does it best to create single long row from my 10K lines file. Have no idea why it tries to do so.
Beofre that splunk did put all fields into the first one.
... View more