If I understand your question correctly, then this might solve your problem.
Alternatively, you can make the output conditional
output {
if [data from lumberjack] {
file {
path => "one thing"
}
} else {
file {
path => "a different thing"
}
}