Giter VIP home page Giter VIP logo

Comments (5)

laluka avatar laluka commented on June 18, 2024 1

Purrfection.

from snuffleupagus.

laluka avatar laluka commented on June 18, 2024

Small update, I've been able to raise the max length by changing one thing in Snuffleupagus and one in the php config:

First tweak the values when sp_sanitize_charstring is called, I hardcoded the value to 65000 for specific purpose but a tweakable value would still be nice.

The other change relies in the php config file:

display_errors=Off
log_errors=On
log_errors_max_len=65000
error_log=/path/to/php-snuffleupagus.log

extension=snuffleupagus.so
sp.configuration_file=/path/to/snuffleupagus.rules

Have a nice day! 🌹

from snuffleupagus.

jvoisin avatar jvoisin commented on June 18, 2024

For the "Log lines truncation" issue, you can use the .dump() action instead: I'm not comfortable throwing kilobytes of data into the syslog :/

from snuffleupagus.

laluka avatar laluka commented on June 18, 2024

Well, that's why it would be nice to have it easily configurable with sp.line_max_len(CHAR_COUNT); :)
Also, this can still be a limit on syslog, but be raised on the log_media("php"); ?

I'll give another try to the dump feature if the PoC I'll present (internally) in a few days is convincing enough for the team to move forward with! ^.^

Cheers!

from snuffleupagus.

jvoisin avatar jvoisin commented on June 18, 2024

Done via aa6380a

from snuffleupagus.

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.