Index | index by Group | index by Distribution | index by Vendor | index by creation date | index by Name | Mirrors | Help | Search |
Name: lnav | Distribution: openSUSE Tumbleweed |
Version: 0.12.2 | Vendor: openSUSE |
Release: 1.1 | Build date: Mon Apr 29 08:31:42 2024 |
Group: System/Monitoring | Build host: reproducible |
Size: 8938138 | Source RPM: lnav-0.12.2-1.1.src.rpm |
Packager: http://bugs.opensuse.org | |
Url: https://lnav.org | |
Summary: Logfile Navigator |
The Logfile Navigator, lnav for short, is a curses-based tool for viewing and analyzing log files. The value added by lnav over text viewers or editors is that it takes advantage of any semantic information that can be gleaned from the log file, such as timestamps and log levels. Using this extra semantic information, lnav can do things like interleaving messages from different files, generate histograms of messages over time, and provide hotkeys for navigating through the file. These features are meant to allow the user to quickly and efficiently focus on problems.
BSD-2-Clause
* Mon Apr 29 2024 Michael Vetter <mvetter@suse.com> - Update to 0.12.2: * Added mouse support that can be toggled with F2 or enabled by default with: :config /ui/mouse/mode enabled. With mouse support enabled, many of the UI elements will respond to mouse inputs * Added a journald:// URL handler that will call journalctl and pass any query parameters as options * Added the "last-word" line-format field shortening algorithm * Added a stats.hist PRQL transform that produces a histogram of values over time. * The preview for the :open command will now show a listing of archive contents. * Added humanize_id SQL function that colorizes a string using ANSI escape codes. * Added a selected_text column to the lnav_views table that reports information about text that was selected with a mouse. This makes it possible to script operations that use the selected text as an input. * Added breadcrumb as an option to the :prompt command so that the breadcrumb hotkey can be configured. * The bar charts in the DB view have now been moved to their individual columns instead of occupying the whole width of the view. The result is much cleaner, so the charts are now enabled by default again. * Cursor mode in the main view is now the default instead of using the top line as the focus. You can change back by running: :config /ui/movement/mode top * In the parser details panel (opened by pressing p), you can now hide/show fields by moving the cursor line to the given field and pressing the space bar or by clicking on the diamond with the mouse. * The sv keymap binds § to focus the breadcrumb bar. * With the recent xz backdoor shenanigans, it seems like a good time to add some checks for data being hidden by escape codes: + File names with escape sequences are now displayed in quotes with backslash escapes. + Text that has the same foreground and background colors will have the background set to a contrasting color. * Sub-millisecond time values should now be preserved when displaying JSON-lines logs. * A crash during initialization on Apple Silicon and MacOS 12 has been fixed. * A crash when previewing non-text files. * Optimized ANSI-escape processing. * Various fixes to make lnav usable as a PAGER. * Tue Apr 02 2024 Michael Vetter <mvetter@suse.com> - Update to 0.12.1: Features: * Database queries can now be written in PRQL. When executing a query with ;, if the query starts with from, it will be treated as PRQL. The pipeline structure of PRQL queries is more desirable for interactive use since lnav can make better suggestions and show previews of the stages of the pipeline. * Log partitions can automatically be created by defining a log message pattern in a log format. Under a format definition, add an entry into the "partitions" object in a format definition. The "pattern" property specifies the regular expression to match against a line in a file that matches the format. If a match is found, the partition name will be set to the value(s) captured by the regex. To restrict matches to certain files, you can add a "paths" array whose object elements contain a "glob" property that will be matched against file names. Interface changes: * When using PRQL in the database query prompt (;), the preview pane will show the results for the pipeline stage the cursor is within along with the results of the previous stage (if there is one). The preview works on a limited data set, so the preview results may differ from the final results. * Changed the breadcrumb bar styling to space things out more and make the divisions between items clearer. * The ESC key can now be used to exit the files/filters configuration panel instead of q. This should make it easier to avoid accidentally exiting lnav. * Added some default help text for the command prompt. * Suggestions are now shown for some commands and can be accepted by pressing the right arrow key. For example, after typing in :filter-in the current search term for the view will be suggested (if one is active). * The focused line should be preserved more reliably in the LOG/TEXT views. * In the LOG view, the current partition name (as set with the :partition-name command) is shown as the first breadcrumb in the breadcrumb bar. And, when that breadcrumb is selected, you can select another partition to jump to. * The { / } hotkeys, :next-section, and :prev-section commands now work in the LOG view and take you to the next/previous partition. * The DB view now defaults to not showing bar charts. Breaking changes: * Many of the lesser used column in the log format tables (e.g. log_tags) have been moved to after the columns defined by the format. These columns are usually NULL and are a distraction when previewing queries. - Add lnav-0.12.1-fixbuild.patch: Fix compiler warning-as-error about return from functions * Tue Apr 02 2024 Michael Vetter <mvetter@suse.com> - Update to 0.12.0: Features: * Added a Gantt Chart view to visualize operations over time based on the "opid" in log messages. The view shows the operation IDs, a description of the operation captured from log messages, and a bar representing the period of time that the operation was running. * Added the :sh command and -e option to execute a shell command-line and display its output within lnav. The captured output will be displayed in the TEXT view. The lines from stdout and stderr are recorded separately so that the lines from stderr can be shown in the theme's "error" highlight. The time that the lines were received are also recorded internally so that the "time-offset" display (enabled by pressing Shift + T) can be shown and the "jump to slow-down" hotkeys (s/Shift + S) work. Since the line-by-line timestamps are recorded internally, they will not interfere with timestamps that are in the commands output. * Added a :cd command to change lnav's current directory. * Added support for automatically converting files that are in a format not natively supported by lnav. The new converter section in a log format definition allows you to specify how a file type can be detected and converted. The built-in PCAP support in lnav is implemented using this mechanism. * Added a shell_exec() SQLite function that executes a command-line with the user's $SHELL and returns the output. * Added support for custom URL schemes that are handled by an lnav script. Schemes can be defined under /tuning/url-schemes. See the main docs for more details. * Added docker:// and podman:// URL schemes that can be used to tail the logs for containers (e.g. docker://my-container) or files within a container (e.g. docker://my-serv/var/log/dpkg.log). Containers mentioned in a "Compose" configuration file can be tailed by using compose as the host name with the path to the configuration file (e.g. docker://compose/compose.yaml). * Added an :annotate command that can trigger a call-out to a script to analyze a log message and generate an annotation that is attached to the message. The script is executed asynchronously, so it will not block input and the result is saved in the session. Annotations are defined in the /log/annotations configuration property. * Timestamps with numeric timezone offsets (or Z) are now automatically converted to the local time zone. For example, a timestamp ending in -03:00 will be treated as three hours behind UTC and then adjusted to the local timezone. This feature can be disabled by setting the /log/date-time/convert-zoned-to-local configuration property to false. Timestamps without a zone or have a symbolic zone name (e.g. PDT) are not converted. * Added the SQLite JSON functions to the online help. * Added config get and config blame management CLI commands to get the current configuration and the file locations where the configuration options came from. * When piping data into lnav's stdin, the input used to only be written to a single file without any rotation. Now, the input is written to a directory of rotating files. The same is true for the command-lines executed through the new :sh command. The piped data can be managed using the new piper commands in the management CLI. * The $LNAV_HOME_DIR and $LNAV_WORK_DIR environment variables are now defined inside lnav and refer to the location of the user's configuration directory and the directory where cached data is stored, respectively. * The <pre> and <img> tags are now recognized in Markdown files. * The style attribute in <span> tags is now supported. The following CSS properties and values are supported: * color and background-color with CSS color names * font-weight with a value of bold or bolder * text-decoration with underline * border-left and border-right with the solid, dashed and dotted line styles and colors. * Added an options column to the lnav_views table to allow more control over overlays. * Added a "Dracula" theme as described at: https://draculatheme.com * Multi-line block comments (i.e. /* ... */) and strings are now recognized and styled as appropriate. * Added error and data columns to the fstat() table-valued-function. The error column is non-NULL if there is a problem accessing the file. The data contains the contents of the file, as such, it is hidden by default. * Added a log format for Redis. * The :eval command will now treat its argument(s) as a script, allowing multiple commands to be executed. * Added a timezone() SQL function for converting a timestamp to a target timezone. * Added a :convert-time-to command that converts the timestamp of the focused log message to the given timezone. * Added the :set-file-timezone and :clear-file-timezone commands to set the timezone for log messages that don't include a zone in their timestamp. * Added the options_path and options columns to the lnav_file table so you can see what options are applied to a file. Currently, the only option is the default timezone that is set by the :set-file-timezone command. * Added the config file-options management command that can be used to examine the options that will be applied to a given file. * When viewing a diff, the sections of the diff for each file is recognized and shown in the breadcrumb bar. So, you can see the file the focused line is in. You can also jump to a particular file by focusing on the breadcrumb bar, selecting the crumb, and then selecting the desired file. * Binary files are now displayed as a hex dump with ASCII representation (where applicable). * Added a log_msg_line() SQL function that will return the line number of the start of the currently focused message in the log view. * Added a log_msg_values column to the all_logs SQL table that contains a JSON object with the top 5 values for the fields extracted from the log message. * Added :next-section and :prev-section commands for moving to the next and previous section of a document. For example, the next section in a man page or JSON array. The default keymap has been changed to bind the curly brace keys to these commands. * Added Nextcloud log format from Adam Monsen. * Added GitHub Event Log format for files from gharchive.org. It makes a good example of a JSON-Lines format. Bug Fixes: * Binary data piped into stdin should now be treated the same as if it was in a file that was passed on the command-line. * The -I option is now recognized in the management CLI (i.e. when you run lnav with the -m flag). * Fields in the bro and w3c log formats that were hidden are now saved in the session and restored. * A warning will now be issued if a timestamp in a log format's sample message does not match completely. Warnings in the configuration can be viewed by passing the -W flag. * Importing from regex101.com broke due to some changes in the API. * The details overlay for a log message no longer shows keys for unknown JSON properties. These extra fields are now shown with the proper jget(log_raw_text, '/...') SQL expression needed to retrieve the value. * Improved text-wrapping when rendering Markdown. Interface changes: * The breadcrumb bar hotkey is moving to backtick ` instead of ENTER. * The DB view now uses the "alt-text" theme style to draw alternating rows instead of being hard-coded to bold. The alternation is also now done in groups of two rows instead of only a single row. Numbers are also rendered using the "number" theme style as well. * The log message overlay in the LOG view is now limited 2/3rds of the height. You can focus on the overlay panel by pressing CTRL-]. The "alt-text" theme style is also used to draw the overlay contents now as well. (The overlay is used to display the parser details, comments, and annotations.) * The { and } keys have been changed from moving through the "location history" to moving to the previous and next section in a document. * Added indent guidelines when structured data is detected. Breaking changes: * Removed the -w command-line option. This option was useful when stdin was not automatically preserved. Since the data is now stored (and cleaned up) as well as being spread across multiple files, this option doesn't make sense anymore. * The -t command-line flag behaves a little differently behind the scenes now. Timestamps will always be recorded for each line piped into lnav. This flag means that the data should be treated as a log file instead of plain text. * Data piped into lnav is now stored in the work directory instead of the stdin-captures dot-lnav directory. * Changed the "Bunyan" log format name from bunyan to bunyan_log to be consistent with other format names. * Mon Jul 03 2023 Michael Vetter <mvetter@suse.com> - Update to 0.11.2: Features: * A "cursor" mode has been added to the main view that can be toggled by pressing CTRL-X. While in cursor mode, any operations that would normally work on the "top" line will now operate on the focused line instead. * Added CTRL-D and CTRL-U hotkeys to move down/up by half a page. * Added an auto-width flag to the elements of the line-format array that indicates that the width of the field should automatically be determined by the observed values. * Added bunyan log format from Tobias Gruetzmacher. * Added cloudlare log format * Number fields used in a JSON log format line-format array now default to being right-aligned. Also, added prefix and suffix to line-format elements so a string can optionally be prepended/appended if the value is not empty. * JSON log format detection has been improved to not rely on matching the file name. All possible formats are tried and the one with the most available fields for a given line-format is used. For example, if the first log message has 8 fields and format A contains 5 of those fields in its line-format while format B only contains 2 of those fields in its line-format, format A will be used for the file. Changes: * For JSON-lines logs, line-feeds at the end of a value are automatically stripped. Bug Fixes: * Hidden values in JSON logs are now hidden by default. * Text with ANSI-escapes is now filtered properly. - Drop e25d3e3c69fcf57bbaec2333846b9a43c4d1fc90.patch * Tue Apr 11 2023 Bjørn Lie <bjorn.lie@gmail.com> - Add e25d3e3c69fcf57bbaec2333846b9a43c4d1fc90.patch: Fix build with GCC 13 (add missing <cstdint> include). * Tue Oct 11 2022 Michael Vetter <mvetter@suse.com> - Update to 0.11.1: Features: * Additional validation checks for log formats have been added and will result in warnings. Pass -W on the command-line to view the warnings. The following new check have been added: + Each regex must have a corresponding sample log message that it matches. + Each sample must be matched by only one regex. * Added built-in support for anonymizing content. The :write-* commands now accept an --anonymize option and there is an anonymize() SQL function. The anonymization process will try to replace identifying information with random data. For example, IPv4 addresses are replaced with addresses in the 10.0.0.0/8 range. (This feature is mainly intended to help with providing information to lnav support that does not have sensitive values.) * Added parse_url() and unparse_url() SQL functions for parsing URLs into a JSON object and then back again. Note that the implementation relies on libcurl which has some limitations, like not supporting all types of schemes (e.g. mailto:). * Added the subsecond-field and subsecond-units log format properties to allow for specifying a separate field for the sub-second portion of a timestamp. * Added a keymap for Swedish keyboards. Breaking changes: * The regexp_capture() table-valued-function now returns NULL instead of an empty string for the capture_name column if the capture is not named. Fixes: * Reduce the "no patterns have a capture" error to a warning so that it doesn't block lnav from starting up. * Some ANSI escape sequences will now be removed before testing regexes against a log message. * If a line in a JSON-lines log file does not start with a {, it will now be shown as-is and will not have the JSON parse error. Cost of Doing Business: * Migrated from pcre to pcre2. * Fri Sep 02 2022 Michael Vetter <mvetter@suse.com> - Update to 0.11.0: Features: * Redesigned the top status area to allow for user-specified messages and added a second line that displays an interactive breadcrumb bar. The top status line now shows the clock and the remaining area displays whatever messages are inserted into the lnav_user_notifications table. The information that was originally on top is now in a second line and organized as breadcrumbs. Pressing ENTER will activate the breadcrumb bar and the left/right cursor keys can be used to select a particular crumb while the up/down keys can select a value to switch to. While a crumb is selected, you can also type in some text to do a fuzzy search on the possibilities or, if the crumb represents an array of values, enter the index to jump to. * The pretty-print view will now show breadcrumbs that indicate the location of the top line in the view with the prettified structure. * Markdown files (those with a .md extension) are now rendered in the TEXT view. The breadcrumb bar at the top will also be updated depending on the section of the document that you are in and you can use it to jump to different parts of the doc. * The ":goto" command will now accept anchor links (i.e. #section-id) as an argument when the text file being viewed has sections. You can also specify an anchor when opening a file by appending "#". For example, "README.md#screenshot". * Log message comments are now treated as markdown and rendered accordingly in the overlay. Multi-line comments are now supported as well. * Metadata embedded in files can now be accessed by the "lnav_file_metadata" table. Currently, only the front-matter in Markdown files is supported. * Added an integration with regex101.com to make it easier to edit log message regular expressions. Using the new "management CLI" (activated by the -m option), a log format can be created from a regular expression entry on regex101.com and existing patterns can be edited. * In the spectrogram view, the selected value range is now shown by an overlay that includes a summary of the range and the number of values that fall in that range. There is also a detail panel at the bottom that shows the log-messages/DB-rows whose values are in that range. You can then press TAB to focus on the detail view and scroll around. * Add initial support for pcap(3) files using tshark(1). * SQL statement execution can now be canceled by pressing CTRL+] (same as canceling out of a prompt). * To make it possible to automate some operations, there is now an "lnav_events" table that is updated when internal events occur within lnav (e.g. opening a file, format is detected). You can then add SQLite TRIGGERs to this table that can perform a task by updating other tables. * Tags can automatically be added to messages by defining a pattern in a log format. Under a format definition, add the tag name into the "tags" object in a format definition. The "pattern" property specifies the regular expression to match against a line in a file that matches the format. If a match is found, the tag will be applied to the log message. To restrict matches to certain files, you can add a "paths" array whose object elements contain a "glob" property that will be matched against file names. * Log messages can now be detected automatically via "watch expressions". These are SQL expressions that are executed for each log message. If the expressions evaluates to true, an event is published to the "lnav_events" table that includes the message contents. * Added the "regexp_capture_into_json()" table-valued-function that is similar to "regexp_capture()", but returns a single row with a JSON value for each match instead of a row for each capture. * Added a "top_meta" column to the lnav_views table that contains metadata related to the top line in the view. * Added a "log_opid" hidden column to all log tables that contains the "operation ID" as specified in the log format. * Moved the "log_format" column from the all_logs table to a hidden column on all tables. * Add format for UniFi gateway. * Added a "glob" property to search tables defined in log formats to constrain searches to log messages from files that have a matching log_path value. * Initial indexing of large files should be faster. Decompression and searching for line-endings are now pipelined, so they happen in a thread that is separate from the regular expression matcher. * Writing to the clipboard now falls back to OSC 52 escape sequence if none of the clipboard commands could be detected. Your terminal software will need to support the sequence and you may need to explicitly enable it in the terminal. * Added the ":export-session-to " command that writes the current session state to a file as a list of commands/SQL statements. This script file can be executed to restore the majority of the current state. * Added the "echoln()" SQL function that behaves similarly to the ":echo" command, writing its first argument to the current output. * Added "encode()" and "decode()" SQL functions for transcoding blobs or text values using one of the following algorithms: base64, hex, or uri. * In regular expressions, capture group names are now semantically highlighted (e.g. in the capture, (?\w+), "name" would have a unique color). Also, operations or previews that use that regular expression will highlight the matched data with the same color. * Added an lnav_views_echo table that is a real SQLite table that you can create TRIGGERs on in order to perform actions when scrolling in a view. * Added a "yaml_to_json()" SQL function that converts a YAML document to the equivalent JSON. Breaking Changes: * Formats definitions are now checked to ensure that values have a corresponding capture in at least one pattern. * Added a 'language' column to the lnav_view_filters table that specifies the language of the 'pattern' column, either 'regex' or 'sql'. * Timestamps that do not have a day or month are rewritten to a full timestamp like YYYY-MM-DD HH:MM:SS. * Removed the summary overlay at the bottom of the log view that displayed things like "Error rate" and the time span. It doesn't seem like anyone used it. * Removed the "log_msg_instance" column from the logline and search tables since it causes problems with performance. * Search tables now search for multiple matches within a message instead of stopping at the first hit. Each additional match is returned as a separate row. A "match_index" column has been added to capture the index of the match within the message. The table regex is also compiled with the "multiline" flag enabled so the meaning of the '^' and '$' metacharacters are changed to match the start/end of a line instead of the start/end of the entire message string. * Search tables defined in formats are now constrained to only match log messages that are in that log format instead of all log messages. As a benefit, the search table now includes the columns that are defined as part of the format. * The lnav_view_filters table will treats the tuple of (view_name, type, language, pattern) as a UNIQUE index and will raise a conflict error on an INSERT. Use "REPLACE INTO" instead of "INSERT INTO" to ignore conflict error. * The types of SQL values stored as local variables in scripts is now preserved when used as bound variables at a later point in the script. Fixes: * Toggling enabled/disabled filters when there is a SQL expression no longer causes a crash. * Fix a crash related to long lines that are word wrapped. * Multiple SQL statements in a SQL block of a script are now executed instead of just the first one. * In cases where there were many different colors on screen, some text would be colored incorrectly. * The pretty-print view now handles ANSI escape sequences. * The "overstrike" convention for doing bold and underline is now supported. (Overstrike is a character followed by a backspace and then the same character for bold or an underscore for underline.) * The ":eval" command now works with searching (using the '/' prefix). - Remove gcc12-includes.patch fix-for-upstream-sources.patch * Tue Jun 07 2022 Dirk Müller <dmueller@suse.com> - add gcc12-includes.patch to fix build with gcc 12 * Fri Feb 18 2022 Marcin Bajor <marcin.bajor@gmail.com> - Add temporary patch (fix-for-upstream-sources.patch) for the upstram issue gh#tstack/lnav#942 * Wed Nov 03 2021 Michael Vetter <mvetter@suse.com> - Update to 0.10.1: Features: * Added ":show-only-this-file" command that hides all files except the one for the top line in the view. * The ":write-raw-to" command now accepts a --view flag that specifies the source view for the data to write. For example, to write the results of a SQL query, you would pass "--view=db" to the command. * The commands used to access the clipboard are now configured through the "tuning" section of the configuration. * Added an "lnav_version()" SQL function that returns the current version string. * Added basic support for the logfmt file format. Currently, only files whose lines are entirely logfmt-encoded are supported. The lines must also contain either a field named "time" or "ts" that contains the timestamp. * Added the "logfmt2json()" SQL function to convert a string containing a logfmt-encoded message into a JSON object that can be operated on more easily. * Added the "gzip()" and "gunzip()" SQL functions to compress values into a blob and decompress a blob into a string. Interface changes: * The xclip implementation for accessing the system clipboard now writes to the "clipboard" selection instead of the "primary" selection. * The 'query' bookmark type and y/Y hotkeys have been removed due to performance issues and the functionality is probably rarely used. Bug Fixes: * The text "send-input" would show up on some terminals instead of ignoring the escape sequence. This control sequence was only intended to be used in the test suite. * Remote file synchronization has been optimized a bit. * Configuration values loaded from the ~/.lnav/configs directory are now included in the default configuration, so they won't be saved into the ~/.lnav/config.json user configuration file. * Key handling in the visual filter editor will no longer swallow certain key-presses when editing a filter. * Scrolling performance restored in the SQL view. * The ':redirect-to' command now works with '/dev/clipboard' * The field overlay (opened by pressing 'p') now shows 'log_time' for the timestamp field instead of the name defined in the format. * The search term in the bottom status bar will now update properly when switching views. * The "Out-Of-Time-Order Message" overlay will be shown again. * The tab for the "Files" panel will be highlighted in red if there is an issue opening a file. * Overwritten files should be reloaded again. * The "jget()" SQL function now returns numbers with the correct type. * The "json_contains()" SQL function now returns false if the first argument is NULL instead of NULL. * The local copies of remote files are now cleaned up after a couple days of the host not being accessed. * The initial loading and indexing phase has been optimized. * Mon Aug 16 2021 Michael Vetter <mvetter@suse.com> - Update to 0.10.0: Features: * Files on remote machines can be viewed/tailed if they are accessible via SSH. The syntax for specifying the host and path is similar to scp. For example, to view the files in the /var/log directory on the machine "host1.example.org": user@host1.example.org:/var/log Note that you must be able to log into the machine without any interaction. Added the ':filter-expr' command to filter log messages based on an SQL expression. This command allows much greater control over filtering. * Added the ':mark-expr' command to mark log messages based on an SQL expression. This command makes it easier to programmatically mark log messages compared to using SQL. * Added support for archive files, like zip, and other compression formats, like xz, when compiled with libarchive. When one of these types of files is detected, they are unpacked into a temporary directory and all of the files are loaded into lnav. * Added an 'xpath()' table-valued function for extracting values from strings containing XML snippets. * Added the ':prompt' command to allow for more customization of prompts. Combined with a custom keymapping, you can now open a prompt and prefill it with a given value. For example, a key could be bound to the following command to open the command prompt with ":filter-in " already filled in: :prompt command : 'filter-in ' * Added support for the W3C Extended Log File Format with the name "w3c_log". Similarly to the bro log format, the header is used to determine the columns in a particular file. However, since the columns can be different between files, the SQL table only has a well-known set of columns and the remainder are accessible through JSON-objects stored in columns like "cs_headers" and "sc_headers". * Added support for the S3 Access File Format. * To jump to the first search hit above the top line in a view, you can press CTRL+J instead of ENTER in the search prompt. Pressing ENTER will jump to the first hit below the current window. * Filtering, as a whole, can be now disabled/enabled without affecting the state of individual filters. This includes text and time-filters (i.e. :hide-lines-before). You can enable/disable filtering by: pressing 'f' in the filter editor UI; executing the ':toggle-filtering' command; or by doing an UPDATE on the "filtering" column of the "lnav_views" SQLite table. * Themes can now include definitions for text highlights under: /ui/theme-defs/<theme_name>/highlights * Added a "grayscale" theme that isn't so colorful. * Added the humanize_file_size() SQL function that converts a numeric size to a human-friendly string. * Added the sparkline() SQL function that returns a "sparkline" bar made out of unicode characters. It can be used with a single value or as an aggregator. * Added a "log_time_msecs" hidden column to the log tables that returns the timestamp as the number of milliseconds from the epoch. * Added an "lnav_top_file()" SQL function that can be used to get the name of the top line in the top view or NULL if the line did not come from a file. * Added a "mimetype" column to the lnav_file table that returns a guess as to the MIME type of the file contents. * Added a "content" hidden column to the lnav_file table that can be used to read the contents of the file. The contents can then be passed to functions that operate on XML/JSON data, like xpath() or json_tree(). * Added an "lnav_top_view" SQL VIEW that returns the row for the top view in the lnav_views table. * The "generate_series()" SQLite extension is now included by default. One change from the standard implementation is that both the start and stop are required parameters. * Added the ";.read" SQL command for executing a plain SQL file. * Added the "-N" flag so that lnav will run without opening the default syslog file. Interface Changes: * When copying log lines, the file name and time offset will be included in the copy if they are enabled. * Log messages that cannot be parsed properly will be given an "invalid" log level and the invalid portions colored yellow. * The range_start and range_stop values of the regexp_capture() results now start at 1 instead of zero to match with what the other SQL string functions expect. * The ":write-cols-to" command has been renamed to ":write-table-to". * The DB view will limit the maximum column width to 120 characters. * The ":echo" command now evaluates its message to do variable substitution. * The ":write-raw-to" command has been changed to write the original log file content of marked lines. For example, when viewing a JSON log, the JSON-Line values from the log file will be written to the output file. The ":write-view-to" command has been added to perform the previous work of ":write-raw-to" where the raw content of the view is written to the file. Fixes: * Unicode text can now be entered in prompts. * The replicate() SQL function would cause a crash if the number of replications was zero. * Many internal improvements.
/usr/bin/lnav /usr/share/applications/lnav.desktop /usr/share/doc/packages/lnav /usr/share/doc/packages/lnav/AUTHORS /usr/share/doc/packages/lnav/NEWS.md /usr/share/doc/packages/lnav/README /usr/share/licenses/lnav /usr/share/licenses/lnav/LICENSE /usr/share/man/man1/lnav.1.gz
Generated by rpm2html 1.8.1
Fabrice Bellet, Fri Oct 18 00:12:25 2024