-
-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] heplify-server start successfully but heplify-server.log file not create ? #313
Comments
Mby some permission issue? |
No, I changed permission of heplify-server folder to 777 and log file still not create |
Does LogSys = true work? |
No, When I set LogSys = true, no log in /var/log/heplify-server.log |
LogSys = true should write into syslog, normally under /var/log/syslog |
|
Red Hat family distributions (including CentOS and Fedora) use /var/log/messages and /var/log/secure Maybe there? |
I use for almost everything Debian and there it's /var/log/syslog |
Since this seems to be an CentOS specific issue maybe someone else could help you out here? Let tag this issue properly. |
@negbie /var/log/messages printed some log of heplify, I will check it later. |
here is some log in /var/log/message |
Looks good. Maybe you or someone else will find out why the normal log file can't be written on CentOS. For me it's currently to low prio so help is wanted. |
My first thoughts are SELinux.
Try to |
Thank you. I hope this helps some other user! |
It's a general bug. There is another issue #360 that clearly points to the root cause of problems: A hardcoded path in the working directory. As it is now, logging to a file is basically unusable/inoperable (at least outside of dedicated containers). Sure there is logs in syslog but if you want to have it separated this is currently not easily possible. |
This is a 4 years old issue you're commenting on so I'm not sure what the value is. If there's a PR or a proposal, we're happy to hear it and implement it. |
@lmangani No reason to be offended here. |
Hey @ffloimair i'm absolutely not offended but I think opening a fresh issue with your comments, proposals, etc would be more useful than commenting on a very old closed one. Feel free to do so and we'll be happy to look at this again for a solution. |
I'm using CentOS Linux release 7.7.1908 (Core)
I'm install heplify-server via this link: https://github.com/sipcapture/homer/wiki/homer-seven-setup#the-heplify-capture-agent
Result: heplify-server start successfully but heplify-server.log file not create
Here is heplify-server.toml file:
HEPAddr = "0.0.0.0:9060"
HEPTCPAddr = ""
HEPTLSAddr = "0.0.0.0:9060"
ESAddr = ""
ESDiscovery = false
LokiURL = ""
LokiBulk = 200
LokiTimer = 4
LokiBuffer = 100000
LokiHEPFilter = []
ForceHEPPayload = []
PromAddr = "0.0.0.0:9096"
PromTargetIP = ""
PromTargetName = ""
DBShema = "homer7"
DBDriver = "postgres"
DBAddr = "localhost:5432"
DBUser = "homer_user"
DBPass = "FT5QRbUOflpHMrWqXGUwu39r9cQ"
DBDataTable = "homer_data"
DBConfTable = "homer_config"
DBBulk = 200
DBTimer = 4
DBBuffer = 400000
DBWorker = 32
DBRotate = true
DBPartLog = "2h"
DBPartSip = "1h"
DBPartQos = "6h"
DBDropDays = 14
DBDropDaysCall = 0
DBDropDaysRegister = 0
DBDropDaysDefault = 0
DBDropOnStart = false
Dedup = false
DiscardMethod = ["OPTIONS","NOTIFY"]
AlegIDs = []
CustomHeader = []
SIPHeader = []
LogDbg = "hep,sql"
LogLvl = "info"
LogStd = false
LogSys = false
Config = "./heplify-server.toml"
ConfigHTTPAddr = ""
The text was updated successfully, but these errors were encountered: