In terms of ease of setup and teaching, alerting and visualization, easy integration with scripts, and overall fit for the objectives of this project, Grafana Loki, coupled with Fluent Bit, are our top contenders. (And as a plus: in terms of signature-based detections, both YARA and ClamAV are compatible options.)
In terms of ease of setup and teaching, alerting and visualization, easy integration with scripts, and overall fit for the objectives of this project, Grafana Loki, coupled with Fluent Bit, are our top contenders. (And as a plus: in terms of signature-based detections, both YARA and ClamAV are compatible options.)
There is a demo coming up for how to get started with logging using Grafana Loki on October 22nd (Info Here). We can register via this link.
The demo is supposed to teach about what it is and what it does; act as an overview of how Loki works, what makes it different, and what it's good at; and show a demo of new & updated Loki 3.0 features so that users can learn how to create metrics from logs & alert on their logs with powerful Prometheus-style alerting rules.
There is a demo coming up for how to get started with logging using Grafana Loki on October 22nd ([Info Here](https://grafana.com/go/webinar/getting-started-with-logging-and-grafana-loki/?pg=oss-loki&plcmt=quick-links)). We can register via this link.
The demo is supposed to teach about what it is and what it does; act as an overview of how Loki works, what makes it different, and what it's good at; and show a demo of new & updated Loki 3.0 features so that users can learn how to create metrics from logs & alert on their logs with powerful Prometheus-style alerting rules.
There's also a video source provided on the link that I provided above: [Scaling & securing your logs for reliable petabyte-scale logging](https://grafana.com/go/webinar/scaling-and-securing-your-logs-with-grafana-loki/?pg=webinar-getting-started-with-logging-and-grafana-loki&plcmt=related-sidebar-2).
Lastly, here is [Grafana Loki on GitHub](https://github.com/grafana/loki/?pg=webinar-getting-started-with-logging-and-grafana-loki&plcmt=related-sidebar-4).
If we use Grafana Loki and Promtail as our logging aggregation tools, there is the benefit of both YARA and ClamAV scanners (which it was requested that I look into) having the ability to be connected and log to stdout or a local file.
This would be how we centralize both script output and server logs into one human-readable place.
Note that this benefit is also noted in the signature-based detections issue since it applies to both.
If we use Grafana Loki and Promtail as our logging aggregation tools, there is the benefit of both YARA and ClamAV scanners (which it was requested that I look into) having the ability to be connected and log to stdout or a local file.
Example Command: `echo "[ALERT] $(date): $(basename "$file") matched rule: $rule_name" >> /var/log/scanner.log`
- Promtail then sends `/var/log/scanner.log` to Loki.
- **This would be how we centralize both script output and server logs into one human-readable place.**
Note that this benefit is also noted in the signature-based detections issue since it applies to both.
It looks like Promtail is being deprecated but they made something new called Alloy. Promtail Deprecation
It looks like Promtail is being deprecated but they made something new called Alloy. [Promtail Deprecation](https://grafana.com/docs/loki/latest/send-data/promtail/)
Grafana Loki + Fluent Bit are definitive as of now
Set up a Docker container to play around with these logging aggregation tools (we will learn how to do this soon) -> see what works & what doesn't (need to specify exactly what I'd be looking for when the time comes)
Look into using Alloy as Promtail replacement
Attend info session on Oct. 22 if time permits
### Meeting 3 Notes:
- Grafana Loki + Fluent Bit are definitive as of now
- Set up a Docker container to play around with these logging aggregation tools (we will learn how to do this soon) -> see what works & what doesn't (need to specify exactly what I'd be looking for when the time comes)
- Look into using Alloy as Promtail replacement
- Attend info session on Oct. 22 if time permits
Future-proofing: Since Promtail is deprecated, Alloy ensures we're not stuck with unsupported software.
Unified collector: Alloy can handle logs and metrics/traces if we ever expand our observability.
Active development: New features, better integration, etc. Alloy is where new work is going.
Migration path available: Since there’s tooling and docs, switching isn’t blind.
Cons / things to watch
Complexity and learning curve: Users report that Alloy’s docs and configuration are less mature than Promtail’s simpler model. For example:
“the config file is extremely convoluted … I just want something out of the box that allows me to point to log files” (Reddit)
“Alloy docs are so bad … tutorials are basically impossible to come across” (Reddit)
Resource usage: Some users say Alloy uses more CPU/memory than Promtail under similar workloads.
Maturity of examples: Many “getting started” guides and community content are still Promtail-centric, so finding Alloy-specific patterns might require more effort.
We will need to plan and validate the migration: Since our system will involve custom log scripts, uploads, etc., we'll want to ensure that Alloy supports exactly our use-cases (tailing uploads, container logs, file system watchers) and that we understand the config.
Fit for Our Project (Apache + user uploads + student orgs)
Given Our Objectives:
Aggregating messages from scripts (upload scanners, user-data events)
Making them readable and alertable for non-expert student org members
Running inside Docker/Apache + user file-volume context
Wanting ease of teaching + alert setup
Here's How the Above Tradeoffs Might Affect Us:
The fact that Promtail is deprecated means using it now is fine for short term, but if we expect this system to run long term (and we do), going with Alloy makes sense.
If we choose Alloy, we'll invest a little more up front (config, learning) but gain more longevity.
Because part of our goal is ease of teaching, we need something that everyone can pick up quickly. Promtail has more community tutorials currently—but getting familiar with Alloy early means fewer changes later.
Resource constraints: if our volume is modest (script logs + web uploads) then the extra resource cost might not matter. But we should check that Alloy configuration is tuned so we don’t over-run our environment.
Given we'll likely ship logs from containers + file-system + custom scanners, Alloy’s flexibility is a plus.
ChatGPT's Recommendations:
Start immediately with a minimal Alloy setup (instead of Promtail) for our Docker environment.
Use Alloy to tail the log directories (scanner logs, Apache logs, upload logs) and ship to our log aggregator (e.g., Grafana Loki) + our dashboarding system.
Make sure we test (scripts that emit messages, uploads, etc) and confirm Alloy captures them as expected.
Given the learning phase, prepare a simple “user guide” for everyone: how to open Grafana, how to filter logs, how to set simple alerts—so even if the internal config is more complex, from the user’s point of view it’s simple.
Document the migration path (though if we are starting fresh it’s less of a “migration” than “first choice”).
Keep an eye on resource usage and complexity; tune Alloy’s pipeline to be as light as we need.
## **Pros of using Alloy (to Replace Promtail)**
- **Future-proofing:** Since Promtail is deprecated, Alloy ensures we're not stuck with unsupported software.
- **Unified collector:** Alloy can handle logs and metrics/traces if we ever expand our observability.
- **Active development:** New features, better integration, etc. Alloy is where new work is going.
**Migration path available:** Since there’s tooling and docs, switching isn’t blind.
## **Cons / things to watch**
- **Complexity and learning curve:** Users report that Alloy’s docs and configuration are less mature than Promtail’s simpler model. For example:
- “the config file is extremely convoluted … I just want something out of the box that allows me to point to log files” (Reddit)
- “Alloy docs are so bad … tutorials are basically impossible to come across” (Reddit)
- **Resource usage:** Some users say Alloy uses more CPU/memory than Promtail under similar workloads.
- **Maturity of examples:** Many “getting started” guides and community content are still Promtail-centric, so finding Alloy-specific patterns might require more effort.
- **We will need to plan and validate the migration:** Since our system will involve custom log scripts, uploads, etc., we'll want to ensure that Alloy supports exactly our use-cases (tailing uploads, container logs, file system watchers) and that we understand the config.
## Fit for Our Project (Apache + user uploads + student orgs)
### Given Our Objectives:
- Aggregating messages from scripts (upload scanners, user-data events)
- Making them readable and alertable for non-expert student org members
- Running inside Docker/Apache + user file-volume context
- Wanting ease of teaching + alert setup
### Here's How the Above Tradeoffs Might Affect Us:
- The fact that Promtail is deprecated means using it now is fine for short term, but if we expect this system to run long term (and we do), going with Alloy makes sense.
- If we choose Alloy, we'll invest a little more up front (config, learning) but gain more longevity.
- Because part of our goal is ease of teaching, we need something that everyone can pick up quickly. Promtail has more community tutorials currently—but getting familiar with Alloy early means fewer changes later.
- **Resource constraints:** if our volume is modest (script logs + web uploads) then the extra resource cost might not matter. But we should check that Alloy configuration is tuned so we don’t over-run our environment.
- Given we'll likely ship logs from containers + file-system + custom scanners, Alloy’s flexibility is a plus.
## ChatGPT's Recommendations:
- **Start immediately** with a minimal Alloy setup (instead of Promtail) for our Docker environment.
- Use Alloy to tail the log directories (scanner logs, Apache logs, upload logs) and ship to our log aggregator (e.g., Grafana Loki) + our dashboarding system.
- Make sure we test (scripts that emit messages, uploads, etc) and confirm Alloy captures them as expected.
- Given the learning phase, prepare a simple “user guide” for everyone: how to open Grafana, how to filter logs, how to set simple alerts—so even if the internal config is more complex, from the user’s point of view it’s simple.
- Document the migration path (though if we are starting fresh it’s less of a “migration” than “first choice”).
- Keep an eye on resource usage and complexity; tune Alloy’s pipeline to be as light as we need.
This repo is archived. You cannot comment on issues.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Use branch
loggingIn terms of ease of setup and teaching, alerting and visualization, easy integration with scripts, and overall fit for the objectives of this project, Grafana Loki, coupled with Fluent Bit, are our top contenders. (And as a plus: in terms of signature-based detections, both YARA and ClamAV are compatible options.)
There is a demo coming up for how to get started with logging using Grafana Loki on October 22nd (Info Here). We can register via this link.
The demo is supposed to teach about what it is and what it does; act as an overview of how Loki works, what makes it different, and what it's good at; and show a demo of new & updated Loki 3.0 features so that users can learn how to create metrics from logs & alert on their logs with powerful Prometheus-style alerting rules.
There's also a video source provided on the link that I provided above: Scaling & securing your logs for reliable petabyte-scale logging.
Lastly, here is Grafana Loki on GitHub.
If we use Grafana Loki and Promtail as our logging aggregation tools, there is the benefit of both YARA and ClamAV scanners (which it was requested that I look into) having the ability to be connected and log to stdout or a local file.
Example Command:
echo "[ALERT] $(date): $(basename "$file") matched rule: $rule_name" >> /var/log/scanner.log/var/log/scanner.logto Loki.Note that this benefit is also noted in the signature-based detections issue since it applies to both.
It looks like Promtail is being deprecated but they made something new called Alloy. Promtail Deprecation
Meeting 3 Notes:
Pros of using Alloy (to Replace Promtail)
Future-proofing: Since Promtail is deprecated, Alloy ensures we're not stuck with unsupported software.
Unified collector: Alloy can handle logs and metrics/traces if we ever expand our observability.
Active development: New features, better integration, etc. Alloy is where new work is going.
Migration path available: Since there’s tooling and docs, switching isn’t blind.
Cons / things to watch
Complexity and learning curve: Users report that Alloy’s docs and configuration are less mature than Promtail’s simpler model. For example:
Resource usage: Some users say Alloy uses more CPU/memory than Promtail under similar workloads.
Maturity of examples: Many “getting started” guides and community content are still Promtail-centric, so finding Alloy-specific patterns might require more effort.
We will need to plan and validate the migration: Since our system will involve custom log scripts, uploads, etc., we'll want to ensure that Alloy supports exactly our use-cases (tailing uploads, container logs, file system watchers) and that we understand the config.
Fit for Our Project (Apache + user uploads + student orgs)
Given Our Objectives:
Aggregating messages from scripts (upload scanners, user-data events)
Making them readable and alertable for non-expert student org members
Running inside Docker/Apache + user file-volume context
Wanting ease of teaching + alert setup
Here's How the Above Tradeoffs Might Affect Us:
The fact that Promtail is deprecated means using it now is fine for short term, but if we expect this system to run long term (and we do), going with Alloy makes sense.
If we choose Alloy, we'll invest a little more up front (config, learning) but gain more longevity.
Because part of our goal is ease of teaching, we need something that everyone can pick up quickly. Promtail has more community tutorials currently—but getting familiar with Alloy early means fewer changes later.
Resource constraints: if our volume is modest (script logs + web uploads) then the extra resource cost might not matter. But we should check that Alloy configuration is tuned so we don’t over-run our environment.
Given we'll likely ship logs from containers + file-system + custom scanners, Alloy’s flexibility is a plus.
ChatGPT's Recommendations:
Start immediately with a minimal Alloy setup (instead of Promtail) for our Docker environment.
Use Alloy to tail the log directories (scanner logs, Apache logs, upload logs) and ship to our log aggregator (e.g., Grafana Loki) + our dashboarding system.
Make sure we test (scripts that emit messages, uploads, etc) and confirm Alloy captures them as expected.
Given the learning phase, prepare a simple “user guide” for everyone: how to open Grafana, how to filter logs, how to set simple alerts—so even if the internal config is more complex, from the user’s point of view it’s simple.
Document the migration path (though if we are starting fresh it’s less of a “migration” than “first choice”).
Keep an eye on resource usage and complexity; tune Alloy’s pipeline to be as light as we need.