Giter Site home page Giter Site logo

bad escape \s in Drain.py about logparser HOT 7 CLOSED

moesjo avatar moesjo commented on September 4, 2024
bad escape \s in Drain.py

from logparser.

Comments (7)

moesjo avatar moesjo commented on September 4, 2024

Already included in several pull requests.

from logparser.

shoaib-intro avatar shoaib-intro commented on September 4, 2024

works with drain same issue with spell any idea?

from logparser.

moesjo avatar moesjo commented on September 4, 2024

I think for spell it's pretty much the same, there should be a line similar to the one shown above and when you fill in the \ it should work.
Maybe you should also consider using one of the forks of this project, there are some which already include the fixes for these issues (see pull-requests).

from logparser.

shoaib-intro avatar shoaib-intro commented on September 4, 2024

I think for spell it's pretty much the same, there should be a line similar to the one shown above and when you fill in the \ it should work.
Maybe you should also consider using one of the forks of this project, there are some which already include the fixes for these issues (see pull-requests).

Thanks for reply but I even tried to change drain parameter code with spell does not works....even tried to change concerning line as well....spell keeps working for days but does not bring any output

from logparser.

moesjo avatar moesjo commented on September 4, 2024

So i looked it up and from the syntax point of view you only have to change line 312 in Spell.py from

    splitter = re.sub(' +', '\s+', splitters[k])

to

    splitter = re.sub(' +', '\\\s+', splitters[k])

from logparser.

shoaib-intro avatar shoaib-intro commented on September 4, 2024

So i looked it up and from the syntax point of view you only have to change line 312 in Spell.py from

    splitter = re.sub(' +', '\s+', splitters[k])

to

    splitter = re.sub(' +', '\\\s+', splitters[k])

I have already tried this one, this works but only parameters extraction does not work however it works some other part of dataset but on some dataset having same size does not extract parameters.

from logparser.

moesjo avatar moesjo commented on September 4, 2024

Okay, unfortunately I can't help you with this problem but i hope you'll find a fix for that!

from logparser.

Related Issues (20)

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.