Skip to content

Commit f16b135

Browse files
committed
fixed file sorting in cm read_folder, updated readme
1 parent bae1436 commit f16b135

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
workspace = { members = [ "tests","tests/obfuscate_access_log_ips"] }
22
[package]
33
name = "ngxav"
4-
version = "0.5.1"
4+
version = "0.5.2"
55
edition = "2021"
66
license = "MIT"
77
description = "Search through NGINX logs with advanced filters and support for displaying analytics about your selected log entries"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ To run this, use `ngxav`.
1414
If you're using the default NGINX Log Format, this should be working right out of the box.
1515
You can use the following flags to search using different parameters:
1616

17-
- `-f/--file` - REQUIRED, specifcy the path to the file/folder you wish to search through
17+
- `-f/--file` - REQUIRED, specifcy the path to the file/folder (like "access.log" or "/var/log/nginx/") you wish to search through
1818
- `-s/--search`- OPTIONAL, either REGEX or text to match lines
1919
- `-b/--start_date`- OPTIONAL, find all logs within certain timespan (use time format 08/Nov/2023:08:04:05)
2020
- `-e/--end_date`- OPTIONAL, find all logs within certain timespan (use time format 08/Nov/2023:08:04:05)

src/utils/read_folder_conserve_memory.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ pub fn read_folder_conserve_memory(file_path: String, isUnique: Option<bool>) {
1212
paths.sort_by_key(|x| {
1313
metadata(x.as_ref().unwrap().path().to_str().unwrap())
1414
.unwrap()
15-
.modified()
15+
.created()
1616
.unwrap()
1717
});
1818
let mut occurrences: HashMap<String, bool> = HashMap::new();

0 commit comments

Comments
 (0)