LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-01-2009, 02:48 AM   #1
rasa
LQ Newbie
 
Registered: Sep 2009
Posts: 20

Rep: Reputation: 0
Thumbs up Communication between Linux to Windows


Hi,

I have a Linux server with RHEL 5 installed in it. My java application is sending messages to windows machine and it is working properly. It is using TCP/IP Connection. Whenever my application sends messages from linux to windows is it possible to trace those information in a log file. I am doing it from my application log. But is it possible through some server configuration. I have seen all the http request to the server has logged. But nothing found which goes from the server. If it is possible then how?

Please guide me to solve the issue.

Thanks and regards
Rasa
 
Old 09-01-2009, 12:03 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,491

Rep: Reputation: 8123Reputation: 8123Reputation: 8123Reputation: 8123Reputation: 8123Reputation: 8123Reputation: 8123Reputation: 8123Reputation: 8123Reputation: 8123Reputation: 8123
Quote:
Originally Posted by rasa View Post
Hi,

I have a Linux server with RHEL 5 installed in it. My java application is sending messages to windows machine and it is working properly. It is using TCP/IP Connection. Whenever my application sends messages from linux to windows is it possible to trace those information in a log file. I am doing it from my application log. But is it possible through some server configuration. I have seen all the http request to the server has logged. But nothing found which goes from the server. If it is possible then how?

Please guide me to solve the issue.

Thanks and regards
Rasa
Possible? Sure. Since this is YOUR application that you wrote, you should just be able to add something to it, to write data to a log file easily.
 
Old 09-02-2009, 12:10 AM   #3
rasa
LQ Newbie
 
Registered: Sep 2009
Posts: 20

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by TB0ne View Post
Possible? Sure. Since this is YOUR application that you wrote, you should just be able to add something to it, to write data to a log file easily.
Log file is avaialble in my application. But i want to know whether the linux machine keeps any log file which logs all the tcp or udp connections to other machines.
 
Old 09-02-2009, 01:23 AM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,426

Rep: Reputation: 2786Reputation: 2786Reputation: 2786Reputation: 2786Reputation: 2786Reputation: 2786Reputation: 2786Reputation: 2786Reputation: 2786Reputation: 2786Reputation: 2786
See iptables -j LOG option.
 
Old 09-02-2009, 01:25 AM   #5
JulianTosh
Member
 
Registered: Sep 2007
Location: Las Vegas, NV
Distribution: Fedora / CentOS
Posts: 674
Blog Entries: 3

Rep: Reputation: 90
if your application has xinetd wrapped around it, the system would be able to log such information for you.
 
Old 09-03-2009, 01:23 AM   #6
rasa
LQ Newbie
 
Registered: Sep 2009
Posts: 20

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by chrism01 View Post
See iptables -j LOG option.
when i gave this command i got the error.

iptables -j LOG
iptables v1.3.5: no command specified
Try `iptables -h' or 'iptables --help' for more information.
 
Old 09-03-2009, 01:27 AM   #7
rasa
LQ Newbie
 
Registered: Sep 2009
Posts: 20

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Admiral Beotch View Post
if your application has xinetd wrapped around it, the system would be able to log such information for you.
Can you please explain how that can be acheived. What you meant by "application has xinetd wrapped around it". My application is running in a linux server and it uses apache and jboss. I am not that much familiar with linux os.

Please guide me find the solution.

Regards
Rasa
 
Old 09-03-2009, 02:50 AM   #8
JulianTosh
Member
 
Registered: Sep 2007
Location: Las Vegas, NV
Distribution: Fedora / CentOS
Posts: 674
Blog Entries: 3

Rep: Reputation: 90
Try this doc

http://www.cyberciti.biz/faq/linux-h...inetd-service/
 
Old 09-03-2009, 07:44 AM   #9
rasa
LQ Newbie
 
Registered: Sep 2009
Posts: 20

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Admiral Beotch View Post
Thanks very much.
But in my server both /etc/xinetd.conf and /etc/xinetd.d is there that means it is already configured and i tried start and stop also. But how i will configure the log. Is it in the /etc/xinetd.conf file, following entry i found in xinetd.conf.


Code:
 Define general logging characteristics.
        log_type        = SYSLOG daemon info
        log_on_failure  = HOST
        log_on_success  = PID HOST DURATION EXIT
Regards
Rasa.
 
Old 09-03-2009, 08:08 AM   #10
rasa
LQ Newbie
 
Registered: Sep 2009
Posts: 20

Original Poster
Rep: Reputation: 0
/var/log/secure is this is the log.
But here how can i identify my application message.

Regards
Rasa
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
communication between windows and linux problem naveenisback Linux - Software 1 07-02-2009 09:16 AM
Fault in KDE processes communication: Could not read network communication list Magnus Johansson MEPIS 0 03-30-2008 01:50 PM
communication library for linux and windows jwstric2 Programming 3 02-10-2005 06:20 PM
Windows - Linux communication sujte Programming 1 09-17-2004 09:36 PM
Windows-Samba Communication Adibe_Hamm Linux - Software 4 08-15-2003 08:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration