Skip to main content

Utility to split aggregated logs from Apache Hadoop Yarn applications into a folder hierarchy

Project description

splitlog

Hadoop Yarn application logs aggregate all container logs of a Yarn application into a single file. This makes it very difficult to use Unix command line tools to analyze these logs: Grep will search over all containers and context provided for hits often does not include Yarn container name or host name. splitlog splits a combined logfile for all containers of an application into a file system hierarchy suitable for further analysis:

out
└── hadoopnode
    ├── container_1671326373437_0001_01_000001
    │   ├── directory.info
    │   ├── launch_container.sh
    │   ├── prelaunch.err
    │   ├── prelaunch.out
    │   ├── stderr
    │   ├── stdout
    │   └── syslog
    ├── container_1671326373437_0001_01_000002
    │   ├── directory.info
    │   ├── launch_container.sh
    │   ├── prelaunch.err
    │   ├── prelaunch.out
    │   ├── stderr
    │   ├── stdout
    │   └── syslog
    └── container_1671326373437_0001_01_000003
        ├── directory.info
        ├── launch_container.sh
        ├── prelaunch.err
        ├── prelaunch.out
        ├── stderr
        ├── stdout
        └── syslog

4 directories, 21 files

Installation

Python 3.11+ must be available. Installation via pipx:

pipx install splitlog

How to use

Read logs from standard input:

yarn logs -applicationId application_1582815261257_232080 | splitlog

Read logs from file application_1582815261257_232080.log:

splitlog -i application_1582815261257_232080.log

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

splitlog-4.1.6.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

splitlog-4.1.6-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file splitlog-4.1.6.tar.gz.

File metadata

  • Download URL: splitlog-4.1.6.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for splitlog-4.1.6.tar.gz
Algorithm Hash digest
SHA256 9f7d6d88432868efcd827f16f2312e149fc3ec41ff34b7697c000a37812f9b6c
MD5 d58aa6fbd309ecee2fd84a010d72909c
BLAKE2b-256 9b7b9bc1d80f514854d95f1f4d8ad7288e020c9a306d42102edaf553f8e9ea4f

See more details on using hashes here.

Provenance

The following attestation bundles were made for splitlog-4.1.6.tar.gz:

Publisher: release.yml on splitlog/splitlog

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file splitlog-4.1.6-py3-none-any.whl.

File metadata

  • Download URL: splitlog-4.1.6-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for splitlog-4.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 eca7b675895d3c9956735f70f02da6fdf827e61ccb6316593da03a9c61d88f7f
MD5 f91f177692d0d7caba1d2f7e4a309ba2
BLAKE2b-256 d840087e4768768929079b0189f5448cf48d65a2d77c5cb4fad12b85fc958d45

See more details on using hashes here.

Provenance

The following attestation bundles were made for splitlog-4.1.6-py3-none-any.whl:

Publisher: release.yml on splitlog/splitlog

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page