Selectively read certain files from S3?

how can i selectively only read certain files?:

The prefix setting below doesn't work.. What can i do??

My config below (i used CLI credential to terminal).
input {
s3 {
bucket => "fotolia-prod-logs"
prefix => "///**/event_log/generic.log.gz"
region => "eu-west-1"
type => "generic"
codec => "plain"
delete => false
}
}

filter {
grok{
break_on_match => false
match => { "message" => "%{SYSLOGBASE} %{GREEDYDATA:message}" }
overwrite => [ "message" ]
}
}

output {
stdout { codec => rubydebug }
}

Coz i only want to read generic.log.gz files.

The prefix is just that, a pathname prefix. Wildcards aren't supported. I think your best bet is to use the exclude_pattern option to craft a regular expression that excludes all files except generic.log.gz.