26 Commits
Author SHA1 Message Date
Shreyas Zare d68047b349 app asssembly version updated for release. 2026-10-03 19:01:15 +05:30
Shreyas Zare c9966d0efc app assembly version updated for release. 2026-09-19 20:01:55 +05:30
Shreyas Zare 95813cc479 QueryLogsSqlServer: Updated table to use BIGINT for primary key. 2026-09-19 13:26:37 +05:30
Shreyas Zare ff316ed0d2 app assembly version updated for release. 2026-07-05 17:19:41 +05:30
Shreyas Zare 58af158001 app assembly version updated. 2026-05-03 15:09:11 +05:30
Shreyas Zare 70e2962654 QueryLogsSqlServer: Updated cleanup timer code to do batch removal of records to mitigate timeout errors. Updated startup init code to simplify error handling code. Updated QueryLogsAsync() to fix minor page number issue. 2026-05-03 13:09:19 +05:30
Shreyas Zare fe9e86497a fixed readme formatting issues. 2026-04-26 19:20:09 +05:30
Shreyas Zare db4380bc9a Updated dotnet to v10.0. App assembly version updated for release. 2026-04-25 15:57:13 +05:30
Shreyas Zare d1f2a87678 updated app readme file to include database field values. 2026-04-25 13:01:39 +05:30
Shreyas Zare b6fe70d18f Merge branch 'app-docs-pr' into app-docs 2026-04-18 18:43:44 +05:30
Zafer Balkan 78c94010f9 Added README for Apps (#1704)
* Added sample README

* Initial version of documentation of all default apps

Signed-off-by: Zafer Balkan <[email protected]>

* Updated README files

* Standardization

* Minor fixes

* Pushed README files when building

* Fix default values

* Fixed documentation error

* Config update

* Added GeoDB notes

* Fixed the mistake in IPv6 example

---------

Signed-off-by: Zafer Balkan <[email protected]>
2026-04-18 18:41:41 +05:30
Shreyas Zare 1f8afc82cf QueryLogsSqlServer: Updated qtype to INT. Other minor changes done. 2026-04-18 18:03:40 +05:30
Shreyas Zare 8809a4e7eb Query Logs Apps: fixed page number related bug introduced in PR #1702 that caused the last page navigation feature, which uses "-1" value, to stop working. 2026-04-18 15:35:36 +05:30
Jim Strang 7e375ba52b Refactored DNS log pagination to use LIMIT and OFFSET in QueryLogsMySql (#1317) (#1702)
* Refactor DNS log pagination to use LIMIT and OFFSET

Replaced the previous ROW_NUMBER()-based pagination with a simpler and more efficient approach using SQL LIMIT and OFFSET clauses. This change removes unnecessary subqueries and row number calculations, improving code clarity and query performance for paginated DNS log retrieval.

* Add sequential row numbers to DnsLogEntry results

Replace database ID with a calculated row number in DnsLogEntry objects, assigning sequential numbers based on the current page and sort order. This ensures each entry reflects its position in the paginated result set rather than its database ID.

* Improve pagination and query efficiency in DNS log queries

Refactored QueryLogsAsync to better handle invalid page numbers,
ensuring pageNumber is always within valid bounds. Database queries
are now only executed if there are entries to fetch, preventing
unnecessary queries and improving efficiency. Indented and grouped
parameter setup and result reading logic for clarity and correctness.

* Stricter validation for pageNumber in QueryLogsAsync

Changed pageNumber check to require values >= 1 instead of >= 0,
ensuring that page 0 cannot be used in log queries.

* Refactor log pagination to use SQL OFFSET/LIMIT

Replaced manual row range and ROW_NUMBER() logic with SQL OFFSET/LIMIT (SQLite) and OFFSET/FETCH (SQL Server) for more efficient pagination in QueryLogsAsync. Row numbers are now calculated in code, and queries are only executed if there are entries to fetch. This improves performance, readability, and maintainability.

* Refactor SQL param handling and reader loop logic

Refactored parameter addition to SQL commands to use explicit null checks, improving robustness and readability. Changed `@qclass` type from `ushort` to `short` for SQL Server. Updated `totalEntries` calculation to handle null results safely. Moved variable declarations and null checks inside the database reader loop, and restructured row number logic for clarity. No changes to query functionality.
2026-04-18 15:06:25 +05:30
Shreyas Zare 5b385c04f2 QueryLogsSqlServer: Updated code to support comments in config. Nullable related changes done. 2026-04-18 13:49:17 +05:30
Shreyas Zare 4600a943ac QueryLogsSqlServer: updated code to log TC response correctly. 2026-03-14 18:09:05 +05:30
Shreyas Zare d365d67937 Upgraded to .NET 9. App assembly version updated for release. 2025-11-08 15:58:42 +05:30
Shreyas Zare 942620e57e QueryLogsSqlServer: Updated implementation to use Channel for queuing logs. Updated app to do retries to connect to db on startup. Fixed minor issues and code refactoring changes done. 2025-11-02 15:52:50 +05:30
Shreyas Zare 8462e1fe5d app assembly version updated for release. 2025-04-26 15:48:59 +05:30
Shreyas Zare d09fbad6fb app assembly version updated for release. 2025-04-06 16:51:23 +05:30
Shreyas Zare ee7b9fc21f app assembly version updated for release. 2025-02-15 15:52:21 +05:30
Shreyas Zare d997c1b357 QueryLogsSqlServer: fixed issue with bulk insert due to limit of parameters per query. Fixed minor issue with qtype filtering. 2025-02-15 12:35:42 +05:30
Shreyas Zare d2bcadae57 app assembly version updated for release. 2025-02-02 16:46:30 +05:30
Shreyas Zare 114ec12748 QueryLogsSqlServer: updated app to add server domain to db logs to allow using same db with multiple DNS instances. 2025-02-02 15:58:55 +05:30
Shreyas Zare d5a37a62af app assembly version updated for release. 2025-01-26 20:43:18 +05:30
Shreyas Zare 1ddc0db34d QueryLogsSqlServer: added app with default sample config. 2025-01-26 17:28:00 +05:30