# Using wildcard character in input

**URL:** <https://discuss.elastic.co/t/using-wildcard-character-in-input/67563>\
**Category:** Logstash\
**Created:** [November 30, 2016, 12:18am UTC](https://discuss.elastic.co/t/using-wildcard-character-in-input/67563 "2016-11-30T00:18:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![seanziee](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/seanziee/32/45151_2.png) [@seanziee](https://discuss.elastic.co/u/seanziee)\
**Post date:** [November 30, 2016, 12:18am UTC](https://discuss.elastic.co/t/using-wildcard-character-in-input/67563/1 "2016-11-30T00:18:00Z")

</div>

Hi,

I'm trying to use a wildcard character to get multiple folders in my email with the IMAP input but it doesn't seem to be valid. Am I missing something? Should it work? I have about 30 folders that I need to import and there's a limit office puts on the amount of concurrent sessions that can connect to it, thus I cannot do 30 imaps in one input (I've tried).

```
imap {
        host => "outlook.office365.com"
        user => "XX@XX.com"
        password => "xxx"
        port => 993
        folder => "Inbox/folder/*"
        secure => true
        check_interval => 30
        fetch_count => 100
    }

```

I've tried

```
folder => "Inbox/folder/**"
folder => "Inbox/folder/"
folder => "Inbox/folder/**/"
folder => "Inbox/folder/aa*"
```

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [November 30, 2016, 4:42am UTC](https://discuss.elastic.co/t/using-wildcard-character-in-input/67563/2 "2016-11-30T04:42:49Z")

</div>

Unfortunately wildcard foldernames are not supported. I was about to suggest you to file an issue but note that you already have: [https://github.com/logstash-plugins/logstash-input-imap/issues/23](https://github.com/logstash-plugins/logstash-input-imap/issues/23)

---

<div class="post-metadata">

**Author:** ![seanziee](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/seanziee/32/45151_2.png) [@seanziee](https://discuss.elastic.co/u/seanziee)\
**Post date:** [November 30, 2016, 1:13pm UTC](https://discuss.elastic.co/t/using-wildcard-character-in-input/67563/3 "2016-11-30T13:13:15Z")

</div>

Ok, I just wanted to check to make sure i wasn't missing something. Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 28, 2016, 1:13pm UTC](https://discuss.elastic.co/t/using-wildcard-character-in-input/67563/4 "2016-12-28T13:13:46Z")

</div>

Closed on December 28, 2016, 1:13pm UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
