Mikrotik | Forum Mikrotik Indonesia   Mikrotik Manual Mikrotik iSPY Mikrotik RSS Feed
This Logo is a Courtesy from RumahDowty

Go Back   Mikrotik | Forum Mikrotik Indonesia > Diskusi Mikrotik RouterOS > Scripting @ Mikrotik
iSpy My iTrade Register FAQ Members List Calendar Mark Forums Read

Diskusi ask bikin log file pada Scripting @ Mikrotik | Mikrotik | Forum Mikrotik Indonesia : maaf bila sudah ada yg tanya..... aku nga bisa pakai search soalnya 3 huruf jadi ...




 
Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 03-11-2008, 23:18
john_0ng80 john_0ng80 is online now
Member
 
Join Date: Sep 2007
Posts: 205
iTrader: (0)
Thanks: 45
Thanked 21 Times in 15 Posts
john_0ng80 will become famous soon enoughjohn_0ng80 will become famous soon enough
ask bikin log file




maaf bila sudah ada yg tanya.....
aku nga bisa pakai search soalnya 3 huruf
jadi bingung carinya, lom ketemu :P
bisa nga kita bikin log file (bukan addres list):
siapa saja yg berusaha masuk/login ke mikrotik
log jumlah upload n download per ip?
thanks :P

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #2 (permalink)  
Old 04-11-2008, 09:28
ponywaterhouse ponywaterhouse is offline
Forum Guru
 
Join Date: Jul 2007
Posts: 1,264
iTrader: (0)
Thanks: 40
Thanked 84 Times in 74 Posts
ponywaterhouse has a spectacular aura aboutponywaterhouse has a spectacular aura aboutponywaterhouse has a spectacular aura aboutponywaterhouse has a spectacular aura aboutponywaterhouse has a spectacular aura about
Quote:
Originally Posted by john_0ng80 View Post
maaf bila sudah ada yg tanya.....
aku nga bisa pakai search soalnya 3 huruf
jadi bingung carinya, lom ketemu :P
bisa nga kita bikin log file (bukan addres list):
siapa saja yg berusaha masuk/login ke mikrotik
log jumlah upload n download per ip?
thanks :P
klo yg login ke mikrotik by default kan udh ke log..


klo jumlah upload dan download, kayaknya ga bisa deh..
musti liat langsung di winbox (queue nya)

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to ponywaterhouse For This Useful Post:
  #3 (permalink)  
Old 04-11-2008, 12:41
john_0ng80 john_0ng80 is online now
Member
 
Join Date: Sep 2007
Posts: 205
iTrader: (0)
Thanks: 45
Thanked 21 Times in 15 Posts
john_0ng80 will become famous soon enoughjohn_0ng80 will become famous soon enough
jd intinyakita nga bisa bikin log file sendiri yah!?!? thanks!!!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-11-2008, 13:41
ponywaterhouse ponywaterhouse is offline
Forum Guru
 
Join Date: Jul 2007
Posts: 1,264
iTrader: (0)
Thanks: 40
Thanked 84 Times in 74 Posts
ponywaterhouse has a spectacular aura aboutponywaterhouse has a spectacular aura aboutponywaterhouse has a spectacular aura aboutponywaterhouse has a spectacular aura aboutponywaterhouse has a spectacular aura about
Quote:
Originally Posted by john_0ng80 View Post
jd intinyakita nga bisa bikin log file sendiri yah!?!? thanks!!!
kurang tau sih..
tunggu respon yg lebih ngerti.. hehe..

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 05-11-2008, 00:37
felix_sg felix_sg is online now
Member Senior
 
Join Date: Sep 2007
Location: indonesia
Posts: 392
iTrader: (0)
Thanks: 29
Thanked 22 Times in 19 Posts
felix_sg is on a distinguished roadfelix_sg is on a distinguished road
Send a message via Yahoo to felix_sg
log hanya untuk menyimpan kejadian2 yang di anggap penting oleh mikrotik dan oleh kita. ada log yang secara otomatis dibuat oleh miktotik. dan ada juga bisa di buat secara manual oleh kita. tergantung kebutuhan kita apa aja.

cara pake log. bisa di /fir fil atau /fir mangle, tinggal action di set ke log. silakan di coba2 sendiri. ntar ngerti sendiri.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to felix_sg For This Useful Post:
  #6 (permalink)  
Old 06-11-2008, 04:15
john_0ng80 john_0ng80 is online now
Member
 
Join Date: Sep 2007
Posts: 205
iTrader: (0)
Thanks: 45
Thanked 21 Times in 15 Posts
john_0ng80 will become famous soon enoughjohn_0ng80 will become famous soon enough
tapi tetep terbatas di firewall semua kan.....
itu artinya kita cuma bisa pakai aja!!! nga bisa bikin sendiri!!
misal mau tau bandwith per-hari ato per-user.....

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 06-11-2008, 21:28
yosanpro's Avatar
yosanpro yosanpro is offline
VIP Member
 
Join Date: Nov 2007
Location: Bantul, Bantul, Yogyakarta
Posts: 757
iTrader: (1)
Thanks: 23
Thanked 160 Times in 107 Posts
yosanpro is a name known to allyosanpro is a name known to allyosanpro is a name known to allyosanpro is a name known to allyosanpro is a name known to allyosanpro is a name known to allyosanpro is a name known to all
Send a message via Yahoo to yosanpro
Bisa aja bikin script yang dijalankan pake scheduler...

Misalnya kita bikin variabel yang kita isikan besar traffic pake script, kemudian isi variabel itu bisa kita masukkan di log dengan perintah:

:log info

misalnya mau melihat total byte yang digunakan client 1 selama sehari (sekaligus meresetnya), kita bisa memasukkan di netwatch dengan interval 1d script berikut:

Asumsi ada simple queue dengan nama Client1...

Code:
:local i
:set i [/que si get Client1 total-bytes]
:log info ("Pemakaian Client 1 : " . $i)
/que si reset-counters Client1
silahkan anda mengembangkan sendiri...

Atau kalau mau liat log yang lebih detail dari MikroTik bisa dilihat di system->logging, kemudian tambahkan topic yang diinginkan dan mau disimpan di mana (memory, disk, atau remote pake syslogd).


Last edited by yosanpro : 06-11-2008 at 21:53.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to yosanpro For This Useful Post:
  #8 (permalink)  
Old 13-11-2008, 04:58
john_0ng80 john_0ng80 is online now
Member
 
Join Date: Sep 2007
Posts: 205
iTrader: (0)
Thanks: 45
Thanked 21 Times in 15 Posts
john_0ng80 will become famous soon enoughjohn_0ng80 will become famous soon enough
ok2 ntar i coba2 dl....
omong2 file log nya ini bisa diambil nga yah?!
misal di simpan disk... file yg mana ya?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 14-11-2008, 13:04
yosanpro's Avatar
yosanpro yosanpro is offline
VIP Member
 
Join Date: Nov 2007
Location: Bantul, Bantul, Yogyakarta
Posts: 757
iTrader: (1)
Thanks: 23
Thanked 160 Times in 107 Posts
yosanpro is a name known to allyosanpro is a name known to allyosanpro is a name known to allyosanpro is a name known to allyosanpro is a name known to allyosanpro is a name known to allyosanpro is a name known to all
Send a message via Yahoo to yosanpro
Kalo mau diambil keknya bisanya cuman pake remote log... CMIIW...

Jadi di system logging di setting nyimpannya remote ke IP tertentu, trus di kompi yang kita tuju kita kasih program semacam syslogd (bisa download dari mikrotik.com atau program log daemon lainnya), trus yang menyimpan log tersebut log daemonnya.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to yosanpro For This Useful Post:
  #10 (permalink)  
Old 12-12-2008, 21:22
yosanpro's Avatar
yosanpro yosanpro is offline
VIP Member
 
Join Date: Nov 2007
Location: Bantul, Bantul, Yogyakarta
Posts: 757
iTrader: (1)
Thanks: 23
Thanked 160 Times in 107 Posts
yosanpro is a name known to allyosanpro is a name known to allyosanpro is a name known to allyosanpro is a name known to allyosanpro is a name known to allyosanpro is a name known to allyosanpro is a name known to all
Send a message via Yahoo to yosanpro
oke, dah nemu cara masukin log informasi ke file, baru coba2 hari ini...

bikin di scheduler tiap berapa menit gitu, script dibuat gini:

Code:
/queue simple print stats file=("stats-" . [:pick [/system clock get date] 0 3] . [:pick [/system clock get date] 4 6] . "-" . [:pick [/system clock get time] 0 2] . [:pick [/system clock get time] 3 5])
Code:
/queue simple print rate file=("rate-" . [:pick [/system clock get date] 0 3] . [:pick [/system clock get date] 4 6] . "-" . [:pick [/system clock get time] 0 2] . [:pick [/system clock get time] 3 5])
kalo mo client tertentu aja bisa ditambah where name=namaqueue di belakangnya. Nama file ngikutin tanggal+jam nya.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #11 (permalink)  
Old 13-12-2008, 18:19
felix_sg felix_sg is online now
Member Senior
 
Join Date: Sep 2007
Location: indonesia
Posts: 392
iTrader: (0)
Thanks: 29
Thanked 22 Times in 19 Posts
felix_sg is on a distinguished roadfelix_sg is on a distinguished road
Send a message via Yahoo to felix_sg
Bro yang satu ini emang mantap banget....

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cara membuat file rsc eddysubakir Scripting @ Mikrotik 7 24-08-2008 14:54
(help)transfer file dengan YM durjay General Networking 1 04-08-2008 15:08
how to connect 192.168.0.x and 192.168.1.x (sharing file) chrone Beginner Basics 17 02-07-2008 21:48
[HELP] File Upgrade RouterOS 2.9.6 CaPunG Beginner Basics 5 03-03-2008 23:19
Transver File si_uye Beginner Basics 3 27-10-2007 11:05




All times are GMT +7. The time now is 01:49.