Use the grok filter to extract the project name from the input file path (stored in the path
field), then reference that field when setting the index pattern of the elasticsearch output.
elasticsearch {
...
index => "logstash-%{project}-%{+YYYY.MM.dd}"
}