Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
09-01-2009, 02:48 AM
|
#1
|
LQ Newbie
Registered: Sep 2009
Posts: 20
Rep:
|
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
|
|
|
09-01-2009, 12:03 PM
|
#2
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,491
|
Quote:
Originally Posted by rasa
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.
|
|
|
09-02-2009, 12:10 AM
|
#3
|
LQ Newbie
Registered: Sep 2009
Posts: 20
Original Poster
Rep:
|
Quote:
Originally Posted by TB0ne
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.
|
|
|
09-02-2009, 01:23 AM
|
#4
|
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,426
|
See iptables -j LOG option.
|
|
|
09-02-2009, 01:25 AM
|
#5
|
Member
Registered: Sep 2007
Location: Las Vegas, NV
Distribution: Fedora / CentOS
Posts: 674
Rep:
|
if your application has xinetd wrapped around it, the system would be able to log such information for you.
|
|
|
09-03-2009, 01:23 AM
|
#6
|
LQ Newbie
Registered: Sep 2009
Posts: 20
Original Poster
Rep:
|
Quote:
Originally Posted by chrism01
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.
|
|
|
09-03-2009, 01:27 AM
|
#7
|
LQ Newbie
Registered: Sep 2009
Posts: 20
Original Poster
Rep:
|
Quote:
Originally Posted by Admiral Beotch
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
|
|
|
09-03-2009, 02:50 AM
|
#8
|
Member
Registered: Sep 2007
Location: Las Vegas, NV
Distribution: Fedora / CentOS
Posts: 674
Rep:
|
|
|
|
09-03-2009, 07:44 AM
|
#9
|
LQ Newbie
Registered: Sep 2009
Posts: 20
Original Poster
Rep:
|
Quote:
Originally Posted by Admiral Beotch
|
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.
|
|
|
09-03-2009, 08:08 AM
|
#10
|
LQ Newbie
Registered: Sep 2009
Posts: 20
Original Poster
Rep:
|
/var/log/secure is this is the log.
But here how can i identify my application message.
Regards
Rasa
|
|
|
All times are GMT -5. The time now is 07:28 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|