I follow below step then my problem is solved.
I hope this is helpful to someone and save their time because I spent two days to fix this issue.
Log file path:
D:\Program Files\Splunk\var\log\splunk\splunkd.log
Need to do following changes after installation of app and if you are using Windows
=========================
Error: ERROR FrameworkUtils - Incorrect path to script: .\bin\get_imap_email.py. Script must be located inside $SPLUNK_HOME\bin\scripts.
Solution:
Change following settings.
# *nix systems
disabled = true
# windows
disabled = false
D:\Program Files\Splunk\etc\apps\IMAPmailbox\default\inputs.conf
=========================
Error: get_imap_email.py"" '\xef\xbb\xbf\n'
Solution:
Change encoding of following file.
Open file in notepad++ and change encoding UTF-8 if it is diffrent like [UTF-8-BOM]
D:\Program Files\Splunk\etc\apps\IMAPmailbox\local\imap.conf
=========================
Now last step:
D:\Program Files\Splunk\etc\apps\IMAPmailbox\local\imap.conf
Set following setting in this file.
[IMAP Configuration]
deleteWhenDone = False
disabled = False
fullHeaders = False
includeBody = True
noCache = False
server = imap.gmail.com
useSSL = True
user = uruserid
password = urpass
port = 993
includeBody = True
mimeTypes = text/plain
imapSearch = UNDELETED SMALLER 204800
splunkuser = splunkuser
splunkpassword = splunkpassword
timeout = 10
debug = True
#if Required
#splunkHostPath = https://localhost:8089
Note: Check your firewall for port 993
Don't forget restart Splunk after changes
From URL:
http://localhost:8000/en-US/manager/launcher/control
... View more