Skip to content

Instantly share code, notes, and snippets.

@JazzyJes
JazzyJes / ProcessedFileFilter
Created June 17, 2015 14:42
Example on how to get the Inode of a file and use it to find out whether Logstash has processed the file - in a Spring Integration filter.
package stasher.filters;
import org.apache.commons.csv.CSVFormat;
import org.apache.commons.csv.CSVRecord;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.integration.file.filters.AbstractFileListFilter;
import org.springframework.stereotype.Component;