Skip to content

Match multi keyword in one line #1357

@jary-287

Description

@jary-287

I am a newest of lnav,How can i match more than one keyword in a log entry,for example
my log likes :

[20241212 20:13:14.849761Z ][24858 ][DEBUG ][ChunkStateProcess] recv chunk heartbeat: id=15, version=4, available_│
[20241212 20:13:14.849818Z ][24858 ][INFO ]head {
version: 2
magic_flag: 305400199
session_no: "42190517-560d-4ed8-b8c0-ff216f0fdabb"
source_entity: 337381122
dest_entity: 0
}
body {
[ucloud.udisk.get_lc_chain_request] {
chain_version: 1692631
}
}

how can i match session_no: 42190517-560d-4ed8-b8c0-ff216f0fdabb and chain_version: 1692631 ?
i just match one use '/42190517-560d-4ed8-b8c0-ff216f0fdabb'

and how can i custom a log format

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions