You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature]: Lightweight Self-Hosted Logs Source (No AWS Credentials Required) #366
Currently our logs rely on having AWS credentials for cloudwatch. This is not too friendly for people that wanted to self host.
We previously explored logflare, loki... but it doesn't look seems to work well.
We don't want another container that takes in high compute power.
Why do you need this?
We need it to let open source users able to enjoy logs!
Activity
HarshSharma0801 commentedon Oct 12, 2025
I am working on this issue !
tonychang04 commentedon Oct 12, 2025
Sure! As this is a relatively complicated issue, can you briefly tell us the framework or approach you are using?
HarshSharma0801 commentedon Oct 12, 2025
hey @tonychang04 here is my approach in this , please let me know if you have anything in mind or suggestions or any framework you have in mind
No external frameworks or libraries needed - using only Node.js built-ins.
Approach: Provider Pattern with Auto-Detection
Abstract Provider Interface (
BaseAnalyticsProvider)getLogSources(),getLogsBySource(),searchLogs(), etc.File-Based Provider (
FileProvider)fs.promises→ file operationsfs.createReadStream+readline→ efficient line-by-line readingpath→ file path handlinglogs/insforge.logs.jsonl,logs/function.logs.jsonl, etc.Auto-Detection Logic (
AnalyticsManager)Log Writing (LogWriter)
Log Writing (LogWriter)
tonychang04 commentedon Oct 12, 2025
Sounds Good! Lets see the result! As long as we can query and fetch the logs locally it works!
HarshSharma0801 commentedon Oct 12, 2025
sure will raise a PR !
HarshSharma0801 commentedon Oct 13, 2025
@tonychang04 created a PR for this issue !