# EVE Chatlog Parser

**URL:** <https://forums.eveonline.com/t/eve-chatlog-parser/496129>\
**Category:** Third Party Developers\
**Created:** [August 20, 2025, 10:21am UTC](https://forums.eveonline.com/t/eve-chatlog-parser/496129 "2025-08-20T10:21:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arwen\_Estalia](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/arwen_estalia/32/517628_2.png) [@Arwen\_Estalia](https://forums.eveonline.com/u/Arwen_Estalia)\
**Post date:** [August 20, 2025, 10:21am UTC](https://forums.eveonline.com/t/eve-chatlog-parser/496129/1 "2025-08-20T10:21:46Z")

</div>

I’ve created a small python library that can parse EVE chatlogs for the sake of analyzing, formatting, or simply searching through them. You can find it [HERE](https://gitlab.com/arwenestalia/chatlogs).

This is an excerpt from the README, showing the basic usage of the library:

### Print general information about all chatlogs

```python
import sys
from pathlib import Path
from chatlogs import *

paths = [Path(file) for file in sys.argv[1:]]

for session in parse_chatlog_multi(paths):
    print(repr(session))

```

### Get all lines of a character

```python
import sys
from pathlib import Path
from chatlogs import *

CHARACTER = "Arwen Estalia"
CHARACTER_LINES: list[Line] = []

paths = [Path(file) for file in sys.argv[1:]]

for session in parse_chatlog_multi(paths):
    for line in session.lines:
        if line.character == CHARACTER:
            CHARACTER_LINES.append(line)

```

### Get all real jumps across all of your characters

```python
import sys
from pathlib import Path
from chatlogs import *

JUMPS: dict[str, int] = {}

paths = [Path(file) for file in sys.argv[1:]]

for session in parse_chatlog_multi(paths):
    if session.jumps is None or len(session.jumps) <= 1:
        continue
    for jump in session.jumps[1:]: # cut off the initial 'jump'
        if jump.system not in JUMPS:
            JUMPS[jump.system] = 0
        JUMPS[jump.system] += 1

```

### Advanced filtering and error handling

```python
import sys
from typing import Iterator
from pathlib import Path
from chatlogs import *

paths = [Path(file) for file in sys.argv[1:]]

def filter(s: Session) -> bool:
    return {"Arwen Estalia", "Another Character"} < s.participants \
           and s.start.year == 2024 \
           and s.channel not in ("Local", "Fleet")

def wrapper(iter: Iterator[Session]) -> Iterator[Session]:
    while True:
        try:
            n = next(iter)
            if filter(n):
                yield n
        except StopIteration:
            break
        except ChatlogParseError as e:
            # your error handling here
            continue
    
for session in wrapper(parse_chatlog_multi(paths)):
    print(repr(session))

```

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/eveonline/original/3X/4/1/41ec4921cbaca7a6f9ea556e7cc20018461eae5e.png) [@system](https://forums.eveonline.com/u/system)\
**Post date:** [November 18, 2025, 10:22am UTC](https://forums.eveonline.com/t/eve-chatlog-parser/496129/2 "2025-11-18T10:22:40Z")

</div>

Closed on November 18, 2025, 10:22am UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
