Git Product home page Git Product logo

loggpt's Introduction

LogGPT: Log Anomaly Detection via GPT

This repository contains a Pytorch implementation of LogGPT, a novel model that employs GPT for log anomaly detection. LogGPT is first trained to predict the next log entry based on the preceding sequence ((a) Pre-training). To further enhance the performance of LogGPT, a novel reinforcement learning (RL) strategy is proposed to finetune the model specifically for the log anomaly detection task ((b) Fine-tuning).

alt text

Configuration

  • Ubuntu 20.04
  • NVIDIA driver 495.29.05
  • CUDA 11.3
  • Python 3.9.7
  • PyTorch 1.11.0

Installation

This code requires the packages listed in requirements.txt. A virtual environment is recommended to run this code

On macOS and Linux:

python3 -m pip install --user virtualenv
python3 -m venv env
source env/bin/activate
pip install -r requirements.txt
deactivate

Reference: https://packaging.python.org/guides/installing-using-pip-and-virtual-environments/

Instructions

Run and test:

python3 main.py HDFS
or
python3 main.py BGL
or
python3 main.py Thunderbird

Reference

If you plan to use LogGPT in your project, please consider citing our paper:

@misc{han2023loggpt,
      title={LogGPT: Log Anomaly Detection via GPT}, 
      author={Xiao Han and Shuhan Yuan and Mohamed Trabelsi},
      year={2023},
      eprint={2309.14482},
      archivePrefix={arXiv},
      primaryClass={cs.LG}
}

Contact

If you have any questions, please contact Mohamed Trabelsi ([email protected]) and Xiao Han ([email protected]).

Acknowledgements

The code is mainly written by Xiao Han during his internship at Nokia Bell Labs.

License

LogGPT is CC-BY-NC-4.0 licensed as of now.

loggpt's People

Contributors

csatarigergely avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.