我无法将日志从logstash-forwarder推送到logstash 这里是我的logstash-forwarder.conf
$ /opt/logstash-forwarder/bin/logstash-forwarder -config /etc/↩
logstash-forwarder/logstash-forwarder.conf
运行以下命令
Failed unmarshalling json: invalid character '\x00' looking for beginning of value. Could not load config file /etc/NetworkManager invalid character '\x00' looking for beginning of value
我得到以下例外......
namespace MyNs
{
public class MyForm
{
void updateTextbox_timerTick(object sender, EventArgs e)
{
int cursorPos = textbox.SelectionStart;
int selectSize = textbox.SelectionLength;
if(!autoscroll)
textbox.SuspendDrawing();
lock(bufferLock)
{
textbox.AppendText(buffer.ToString());
buffer.Clear();
}
if(autoscroll)
{
textbox.Select(textbox.Text.Length, 0);
textbox.ScrollToCaret();
}
else
{
textbox.Select(cursorPos, selectSize);
textbox.ResumeDrawing();
}
}
}
public static class Utils
{
[DllImport("user32.dll")]
private static extern int SendMessage(IntPtr hWnd, Int32 wMsg, bool wParam, Int32 lParam);
private const int WM_SETREDRAW = 11;
public static void SuspendDrawing(this Control parent)
{
SendMessage(parent.Handle, WM_SETREDRAW, false, 0);
}
public static void ResumeDrawing(this Control parent)
{
SendMessage(parent.Handle, WM_SETREDRAW, true, 0);
}
}
}
答案 0 :(得分:0)
现在它正在运作: -
bin/logstash-forwarder -config /etc/logstash-forwarder.conf