Arie,

the following worked for me on Windows 7.

    C:\collector\bin>graylog-collector-service.bat install GC
    Installing service for Graylog Collector

    Service name: "GC"
    JAVA_HOME:    "C:\Program Files\Java\jre7\"
    ARCH:         "x86"

    WARNING: JAVA_HOME points to a JRE and not JDK installation; a client (not 
a server) JVM will be used...
    Service 'GC' has been installed

So I guess that there is an issue with Windows 2003 and the service
script. I will try to find a Windows 2003 VM to reproduce it.

I also created an issue on GitHub for it.

https://github.com/Graylog2/collector/issues/15

Regards,
        Bernd

Arie [Wed, May 27, 2015 at 07:02:20AM -0700] wrote:
>Okay it is running and sending data to graylog from windows,
>Now it is only not installing as a service, having the following error.
>
>C:\collector\bin>graylog-collector-service.bat install GA
>Installing service for Graylog Collector
>
>Service name: "GA"
>JAVA_HOME:    "C:\Program Files\Java\jre7\"
>ARCH:         "x86"
>
>WARNING: JAVA_HOME points to a JRE and not JDK installation; a client (not 
>a server) JVM will be used...
>[2015-05-27 16:00:35] [error] [ 2796] Unrecognized cmd option 
>C:\collector\bin\\windows\graylog-collector-service-x86.exe
>[2015-05-27 16:00:35] [error] [ 2796] Invalid command line arguments
>[2015-05-27 16:00:35] [error] [ 2796] Commons Daemon procrun failed with 
>exit value: 1 (Failed to parse command line arguments)
>ERROR: Failed to install service: GA
>
>C:\collector\bin>
>
>
>On Wednesday, May 27, 2015 at 3:30:20 PM UTC+2, Arie wrote:
>>
>> Sorry, I see the typo in my config :-( It is running now
>>
>>
>> On Wednesday, May 27, 2015 at 2:29:31 PM UTC+2, Arie wrote:
>>>
>>> I am playing around with the collector.
>>>
>>> From a linux machine we are getting data into our test machine, Al-tho 
>>> data is flat/ one line message.
>>>
>>> Within windows(2003) we have the following error:
>>>
>>> C:\collector\bin>graylog-collector.bat run -f 
>>> c:\collector\config\collector.conf
>>> 2015-05-27T13:20:06.846+0200 INFO  [main] cli.commands.Run - Starting 
>>> Collector v0.2.1 (commit 93f4b8e)
>>> 2015-05-27T13:20:08.940+0200 INFO  [main] collector.utils.CollectorId - 
>>> Collector ID: dd6c1e19-19b5-422e-b06f-14799d5f7b14
>>> 2015-05-27T13:20:08.987+0200 ERROR [main] cli.commands.Run - 
>>> Configuration Error: [local-syslog] No configuration setting found for key 
>>> 'type'
>>> 2015-05-27T13:20:09.002+0200 INFO  [main] cli.commands.Run - Exit
>>> 2015-05-27T13:20:09.002+0200 INFO  [Thread-1] cli.commands.Run - 
>>> Stopping...
>>>
>>> in the config on windows (2003):
>>>
>>> inputs {
>>>   local-syslog {
>>>   win-application {
>>>     type = "windows-eventlog"
>>>     source-name = "Application"
>>>     poll-interval = 1s
>>>     }
>>>   }
>>> }
>>>
>>>
>>>
>>> Is this just where we are now, and are there improvements coming up/
>>>
>>>
>>> nice work.
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>
>-- 
>You received this message because you are subscribed to the Google Groups 
>"graylog2" group.
>To unsubscribe from this group and stop receiving emails from it, send an 
>email to graylog2+unsubscr...@googlegroups.com.
>For more options, visit https://groups.google.com/d/optout.


-- 
Developer

Tel.: +49 (0)40 609 452 077
Fax.: +49 (0)40 609 452 078

TORCH GmbH - A Graylog company
Steckelhörn 11
20457 Hamburg
Germany

Commercial Reg. (Registergericht): Amtsgericht Hamburg, HRB 125175
Geschäftsführer: Lennart Koopmann (CEO)

-- 
You received this message because you are subscribed to the Google Groups 
"graylog2" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to graylog2+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to