It's the bothersome IT guy again!

Anyways, I finally was able to get loganalyzer to work with rsyslog & mongo
DB on Ubuntu 12.04 LTS. I would like to get a peer review of the steps I
took to see if there is a better way or if I am missing something. So
here's the code:


1. Install Ubuntu 12.04 Server

2. Configure static IP (sudo nano /etc/network/interfaces)

3. sudo nano /etc/apt/sources.list (uncomment deb and deb-src for extras
and partners repositories)

4. sudo apt-get update

5. sudo apt-get upgrade

6. sudo apt-get dist-upgrade

7. Packages needed (use apt-get install for these):

pkg-config build-essential autoconf uuid uuid-dev libgtk2.0-dev libperl-dev
mongodb mongodb-server php-pear apache2 php5

8. sudo nano /etc/apache2/conf.d/fqdn (add Servername localhost)

9. sudo /etc/init.d/apache2 restart

10. Edit php.ini. This was found in /etc/php5/cli/php.ini. Under Dynamic
Extensions, create extension=mongo.so

11. wget libestr.adiscon.com/files/download/libestr-0.1.4.tar.gz

12. tar xzvf libestr-0.1.4.tar.gz -C /tmp/

13. cd /tmp/libestr-0.1.4

14. ./configure --libdir=/usr/lib --includedir=/usr/include --prefix=/usr

15. make

16. sudo make install

17. cd ~

18. clear

19. wget http://www.libee.org/download/files/download/libee-0.4.1.tar.gz

20. tar xzvf libee-0.4.1.tar.gz -C /tmp/

21. cd /tmp/libee-0.4.1

22. ./configure --libdir=/usr/lib --includedir=/usr/include --prefix=/usr

23. make

24. make install

25. cd ~

26. clear

27. wget http://www.liblognorm.com/files/download/liblognorm-0.3.5.tar.gz

28. tar xzvf liblognorm-0.3.5.tar.gz -C /tmp/

29. cd /tmp/liblognorm-0.3.5

30. ./configure --libdir=/usr/lib --includedir=/usr/include --prefix=/usr

31. make

32. sudo make install

33. cd ~

34. clear

35. wget https://github.com/downloads/json-c/json-c/json-c-0.10.tar.gz

36. tar xzvf json-c-0.10.tar.gz -C /tmp/

37. cd /tmp/json-c-0.10

38. ./autogen.sh

39. ./configure --libdir=/usr/lib --includedir=/usr/include
--sbindir=/usr/sbin --prefix=/usr

40. make

41. sudo make install

42. cp -vvv /tmp/json-c-0.10/json_object_iterator.h /usr/include/json

43. cd ~

44. clear

45. wget
http://archive.ubuntu.com/ubuntu/pool/universe/libm/libmongo-client/libmongo-client_0.1.5.orig.tar.gz

46. tar xzvf libmongo-client_0.1.5.orig.tar.gz-C /tmp/

47. cd /tmp/libmongo-client-0.1.5

48. ./autogen.sh

49. ./configure --libdir=/usr/lib --includedir=/usr/include --prefix=/usr

50. make

51. sudo make install

52. cd ~

53. clear

54. wget http://www.rsyslog.com/files/download/rsyslog/rsyslog-7.2.6.tar.gz

55. tar xzvf rsyslog-7.2.6.tar.gz -C /tmp/

56. cd /tmp/rsyslog-7.2.6

57. ./configure  --prefix=/usr --enable-imtcp --enable-mmjsonparse
--enable-ommongodb

58. make

59. sudo make install

60. cd ~

61. clear

62. wget http://download.adiscon.com/loganalyzer/loganalyzer-3.6.3.tar.gz

63. tar xzvf loganalyzer-3.6.3.tar.gz -C /tmp/

64. cd /tmp/loganalyzer-3.6.3

65. sudo mkdir -p /var/www/html/loganalyzer

66. sudo cp -R src/* /var/www/html/loganalyzer

67. sudo cp -R contrib/* /var/www/html/loganalyzer

68. cd /var/www/loganalyzer

69. sudo chmod +x configure.sh secure.sh

70. sudo ./configure.sh

71. cd ~

72. clear

73. Open web browser and go to server-ip/loganalyzer to complete the setup!


I apologize for such a long e-mail. Like always, any feedback is greatly
appreciated!


Thanks,
-- 
Chris Roberts
IT Professional
Budd Baer, Inc
71 Murtland Ave
Washington, PA 15301
Phone: 724-222-0700 Ext: 6601
Fax: 724-914-6633
<http://www.buddbaer.com/>

This message and any attachments are intended only for the use of the addressee 
and may contain information that is privileged and confidential. If the reader 
of the message is not the intended recipient or an authorized representative of 
the intended recipient, you are hereby notified that any dissemination of this 
communication is strictly prohibited. If you have received this communication 
in error, please notify us immediately by e-mail and delete the message and any 
attachments from your system.

Think before you print. Please consider the environment before printing this 
e-mail
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of 
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE 
THAT.

Reply via email to