Questions tagged [syslog]

Syslog is a standard for logging program messages.

Syslog is a standard for logging program messages.Wikipedia

1162 questions
-2
votes
1 answer

PHP error_log ignoring newline

Running PHP 7.0.1 I have come across a problem, I use error_log('....'.PHP_EOL.'...'); but when I look at the log file, I get verbatim \n in the output. error_log is set up to use syslog, and ends up in apaches error_log. This is a CentOS 7…
Morten Nilsen
  • 621
  • 7
  • 18
-2
votes
1 answer

How to script for syslog configuration(linux/AIX) ?

I am new to scripting platform. Looking for creating a script in order to cover below scenarios. We have around 1000 servers and i wish to have a shell/ NSH script in place to get below details. a. What syslog agent is…
-3
votes
1 answer

How to convert escape codes to html or remove

Kestrel in ASP.NET 5 Core MVC application in Debian writes escape codes to /var/log/syslog text file like Apr 5 22:02:21 ew kestrel-store[31907]: #033[40m#033[32minfo#033[39m#033[22m#033[49m: Microsoft.Hosting.Lifetime[0] Apr 5 22:02:21 ew…
Andrus
  • 26,339
  • 60
  • 204
  • 378
-3
votes
1 answer

Logging to syslog using Process.runtime.exec

i am currently trying to log data to syslog and i am using "Runtime.getRuntime().exec" statement in java to do that. The full statement is: Runtime.getRuntime().exec("logger " + data.toString()); Now this works perfectly but it seems too easy and…
Syed Muhammad Oan
  • 687
  • 2
  • 15
  • 39
-4
votes
3 answers

Regex - Match username inside Brackets and prepend string

I've a syslog message like this: 03-25-2022 18:02:51 Local1.Notice 192.168.1.1 Mar 25 18:02:51 2022 192.168.1.1 stm[6358]: <501199> AP:AP01 <192.168.1.1 aa:bb:cc:dd:ee> User authenticated, mac-aa:bb:cc:dd:ee, username-my.username,…
FM86
  • 1
  • 5
-4
votes
1 answer

Python regex parsing of syslog

I have a syslog file with this format. Mar 7 13:44:55 host.domain.example.net/10.10.10.10 Application: Info: MODULE: Startup MESSAGE: Application Version: 8.44.0 Mar 7 13:44:55 host.domain.example.net/10.10.10.10 Application: Info: MODULE: Startup…
Opera
  • 25
  • 2
  • 5
-7
votes
1 answer

note: expected ‘int * (*)()’ but argument is of type ‘int’

Is it too long for me that not writing any code. I have try to write a simple demo in C, but meet below, 1 main.c|87 col 21 warning| passing argument 2 of ‘Logger’ makes pointer from integer without a cast [-Wint-conversion] 2…
Windeal
  • 87
  • 1
  • 9
1 2 3
77
78