SELECT 0.1 (Default branch)


 
Thread Tools Search this Thread
Special Forums News, Links, Events and Announcements Software Releases - RSS News SELECT 0.1 (Default branch)
# 1  
Old 02-26-2008
SELECT 0.1 (Default branch)

Image SELECT allows you to execute SQL queries on text files. It works by loading the text file into an in-memory SQLite database and then executing the query on that. It supports some popular log file formats like access_log and generically every kind of log file.Image

More...
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Windows & DOS: Issues & Discussions

Need help in select statetment

Dear Expert, I have an table name (SMS) in which two column are there one "Flag" other is "Message", If my flag column consist of status "1" then output should be "welcome", else" try again" ,. please correct my code. DECLARE c PLS_INTEGER := dbms_sql.open_cursor; flag VARCHAR2(50); ... (1 Reply)
Discussion started by: Alone
1 Replies

2. Shell Programming and Scripting

Select Unique Value

HOW CAN I SELECT AN UNIQUE STRING FROM A FIELD? ACTUALLY I WANT TO PRINT RECORDS THAT 2ND FIELD OF THAT HAVE ONE CHARACTER AND IT MUST BE "P" AWK '$2~"" {PRINT $0}' IN > OUTBUT THIS CODE PRINT ALL RECORDS WHICH 2ND FIELDS OF THEM START WITH "P" AND MAY CONTAINS ANOTHER CHARACTER! (1 Reply)
Discussion started by: saeed.soltani
1 Replies

3. Shell Programming and Scripting

select unique

hi, #cat /u01/file|grep -v "^#"|cut -f2 -d: -s i want to avoid repeated lines from the output of the above command. Do we have anyting like unique in shell scripting. thx (4 Replies)
Discussion started by: bang_dba
4 Replies

4. Boot Loaders

Reboot and Select Proper Boot device or insert Boot media in select Boot device and press a key

Hello, I have kubuntu on my laptop and now I decided to switch to Windows 7. I made the bios settings properly (first choice is boot from cd\vd) but I see the error " reboot and select proper Boot device or insert Boot media in select Boot device and press a key " I have tried CD and... (0 Replies)
Discussion started by: rpf
0 Replies

5. Shell Programming and Scripting

select last column

Hi! From a file the format of whichis as in the sample here below, I need to get two files having just 2 columns, being - for the first file - the 2nd than the 1st from the original file; and - for the second file - the LAST then the 1st column of the original file. Moreover, I would sort the... (3 Replies)
Discussion started by: mjomba
3 Replies

6. Programming

Problems with select

Is select only supposed to report state changes on an FD's, state, whether or not it had pending input available in the first place? I've got a situation where select() repeatedly reports no FD's ready for stdin when there's lots of data available. And if it only reports changes, how is this... (2 Replies)
Discussion started by: Corona688
2 Replies

7. Shell Programming and Scripting

Select everything before a pattern

Hi I have i doubt, actually i have to select everything before a word(pattern).For that i am using sed i am using the below line of code but it is not working i am getting a blank instead.. sed -n '/regexp/{g;1!p;};h' file1 Can anyone help? Thanks (15 Replies)
Discussion started by: usha rao
15 Replies

8. UNIX for Advanced & Expert Users

mmap and select

I'm using select() to monitor multiple file descriptors (inet sockets) in application. But this application must also collaborate with other applications on the same host via shared memory (mmap'ed file) due to performance reasons. How can I become notification that mmaped memory is changed or... (1 Reply)
Discussion started by: Hitori
1 Replies

9. IP Networking

select vs poll

Hi, Off late I had been looking at the differences b/w select() & poll() system calls. The requirement is to reduce the overhead, processor power in waiting for the data. In the kind of connections under consideration there would be very frequent data arriving on the sockets, so poll() fares... (12 Replies)
Discussion started by: smanu
12 Replies

10. UNIX for Advanced & Expert Users

Help me to select the flavour

Hai Friends I am writing a client-server application for backup utility. The computer is used only for backup utility. We have planed to place linux operating system in it. But i am confused with lots of falvour. I don't know really which flavour of linux to use. Can you please suggest me a... (2 Replies)
Discussion started by: collins
2 Replies
Login or Register to Ask a Question
ASQL(8) 						 Perl Programmers Reference Guide						   ASQL(8)

NAME
asql - Provide an SQL interface to Apache logfiles. SYNOPSIS
asql [options] General Options: --help Show brief help intstructions. --manual Show more complete help. --version Show the version of the software. Scripting Options: --load Load the named file, or glob. --execute Execute a single query then exit. Options: --file Rather than running as a shell read commands from a named file. --quiet Don't show the banner at startup. DESCRIPTION
asql provides a simple console interface to allow a user to query the contents of an Apache logfile via an SQL interface. The shell features include: Persistent alias definitions. Command line completion Command history Simple scriptability INTRODUCTION
The asql shell will create a temporary SQLite database based upon any number of Apache logfiles. This temporary database may then be interactively queried using common SQL syntax. To get started you should load your logfiles into the database: load /var/log/apache2/acces* (The tool will automatically decompress files which have been compressed with gzip or bzip2.) Once you've loaded at least one file you may run queries, for example: SELECT source,SUM(size) AS Number FROM logs GROUP BY source ORDER BY Number DESC, ip This example shows all the clients connecting to your webserver and the size of files/requests that they have downloaded in total. As you can see we've selected two columns "source" and "SUM(size)". To see which other columns are available you may execute the "show" command. Because parsing the Apache logfile(s) specified might be quite slow there is the option of dumping the temporary SQLite database to a known filename with the 'save' command. The analog to the save command is the 'restore' command, which will read in an existing SQLite database and allow future queries to be executed against it. FILES
When the shell starts up it will read and intepret the initialisation file of ~/.asqlrc if it exists. Any commands present in that file will be executed prior to the launch of the interactive session. All aliases will be read and written to the file ~/.asql.aliases. All interactive history will be written to the file ~/.asql. AUTHOR
Steve -- http://www.steve.org.uk/ LICENSE
Copyright (c) 2007,2008,2009,2010 by Steve Kemp. All rights reserved. This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The LICENSE file contains the full text of the license. AUTHOR
Steve -- http://www.steve.org.uk/ LICENSE
Copyright (c) 2007-2020 by Steve Kemp. All rights reserved. This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The LICENSE file contains the full text of the license. perl v5.10.1 2010-10-04 ASQL(8)