How to set access.log format to "combined"

Hello,
I'm trying to get AWStats working on Solaris and have that working fine, but to get more information, I need to set the log format to "combined".
Question is: is there a way to modify what is output in the access.log?

SHOULD I RECOMPILE and specify the access method?
Should i change line 1131 in db4.cpp to DBTYPE type = DB_QUEUE; ???

Similar Messages

  • How i can access log file in servlet?

    How i can access log file in servlet then display it to browser.
              Can i have peice of codes...
              Thanks in advance.!
              

    This is not something that can be answered easily. There is quite alot of code involved....
    To get started I suggest you read up on the built-in package 'DBMS_LOB' from Oracle . Most of what you need you should find there.
    regards Dave.

  • Change access log format

    Hi everybody
    I want to change the access log format of Sun Java Application Server 8.1 2005 Q2...
    I want to include session id information in it ...so i changed the log format using the admin console gui Configuration->httpservice->Access logs...
    The domain.xml file reflected the change as....
    <access-log format="%client.name% %auth-user-name% %datetime% %request% %status% %response.length%" rotation-enabled="true" rotation-interval-in-minutes="1440" rotation-policy="time" rotation-suffix="%YYYY;%MM;%DD;-%hh;h%mm;m%ss;s" />
    to
    <access-log format="%client.name% %auth-user-name% %datetime% %request% %status% %response.length% %cookie.value%" rotation-enabled="true" rotation-interval-in-minutes="1440" rotation-policy="time" rotation-suffix="%YYYY;%MM;%DD;-%hh;h%mm;m%ss;s" />
    But even after i restarted my server,the logs are getting stored in the default format itself....
    Am i missing some step....can somebody tell me the detailed procedure....

    It is a bug(see 6352797) fixed in Patch 07. You should get your appserver patched with one of the following, depending on platform/installation:
    Packaged based:119166-14, 119167-14, 119168-14
    File based:
    EE: 119169-06, 119170-06, 119171-06
    PE: 119173-06, 119174-06, 119175-06, 119176-06

  • How to add "Done" button on Number pad? And how to set 00.00 format for UITextField?

    1.) I am new to iPhone development. I have a small application & for that I need to add number pad but there is no "Done" button. I know we can get rid of that keyboard by clinking UIView but I want a separate button for this.
    2.) My second question is how to set 00.00 format for UITextField as there is no decimal point available on number pad?

    As to #1, you should study the iOS HIG - doing what you have in mind might be a good way to risk rejection and not have your app make it into the store.
    #2:
    On devices running iOS v4.1 and greater  you can use the following:
    myTextField.keyboardType = UIKeyboardTypeDecimalPad;
    It is tricky (and perhaps not worth the trouble) if you are trying to support older iOS versions.  Here is a link to the most popular solution.

  • How to set server log file severity

    Will some one suggest how to set the severity for messages logged by server to server log file. The admin console consists of setting "Stdout Severity Threshold" which is applicable only to standard out. I need to restrict info messages to be logged in server log file.

    Which release of WebLogic Server are you using? In WebLogic 9.0 there is an attribute on the LogMBean called LogFileSeverity which could be configured to "Warning" so it will not allow Debug and Info level messages to be written to the server log file. In the 8.1 release you would need to do this programatically using a startup class, by getting a reference to the server Logger by invoking weblogic/logging/LoggingHelper.getServerLogger() and setting the appropriate weblogic/logging/WLLevel on the weblogic/logging/FilestreamHandler that writes to the server log file.
    Hope this helps
    Sandeep

  • How to set default export format in Crystal Reports Viewer

    When Viewing Crystal Reports, the top left button can choose export file format, how to set it default to Excel?
    If we can only go with hidden the button, and create a new button, any one can kindly provide how to?
    The BOE version is XI R2 SP2.
    Thanks in advance!
    Jennie

    hi all , i have same problem like i want only 1 report to be generated like for ex:only PDF should be generated n all others has to be disabled. my jsp is as follows:
    <%@page import="com.abc.def.crystalReports.JRCHelper,
    com.crystaldecisions.reports.reportengineinterface.*,
    com.crystaldecisions.report.web.viewer.CrystalReportPartsViewer,
    com.crystaldecisions.report.web.viewer.CrystalReportViewer,
    com.crystaldecisions.reports.sdk.ReportClientDocument,
    com.crystaldecisions.sdk.occa.report.application.OpenReportOptions,
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKExceptionBase,
    com.crystaldecisions.sdk.occa.report.reportsource.IReportSource,
    com.crystaldecisions.report.web.viewer.*,
    com.crystaldecisions.sdk.occa.report.exportoptions.*,
    java.sql.Connection,
    java.sql.DriverManager,
    java.sql.ResultSet,
    java.sql.SQLException,
    java.sql.Statement,
    java.util.ResourceBundle"%><%
         // This sample code calls methods from the JRCHelperSample class, which
         // contains examples of how to use the BusinessObjects APIs. You are free to
         // modify and distribute the source code contained in the JRCHelperSample class.
         try {
              ResourceBundle messageBundle = ResourceBundle.getBundle("resources.ApplicationResources");
              String reportName = messageBundle.getString("report.path");
              ReportClientDocument clientDoc = (ReportClientDocument) session.getAttribute(reportName);
              if (clientDoc == null) {
                   // Report can be opened from the relative location specified in the CRConfig.xml, or the report location
                   // tag can be removed to open the reports as Java resources or using an absolute path
                   // (absolute path not recommended for Web applications).
                   clientDoc = new ReportClientDocument();
                   // Open report
                   clientDoc.open(reportName, OpenReportOptions._openAsReadOnly);
                   // ****** BEGIN CHANGE DATASOURCE SNIPPET **************** 
                        String connectString = "jdbc:oracle:thin:@****:db;
                        String driverName = "oracle.jdbc.driver.OracleDriver";
                        String JNDIName = "";
                        String userName = "root";               // TODO: Fill in database user
                        String password = "root";          // TODO: Fill in password
                        // Switch all tables on the main report and sub reports
                        JRCHelper.changeDataSource(clientDoc, userName, password, connectString, driverName, JNDIName);
                   // ****** END CHANGE DATASOURCE SNIPPET ****************      
                   // Store the report document in session
                   session.setAttribute(reportName, clientDoc);
                   // ****** BEGIN CONNECT CRYSTALREPORTPAGEVIEWER SNIPPET **************** 
                        // Create the CrystalReportViewer object
                        CrystalReportViewer crystalReportPageViewer = new CrystalReportViewer();
                        ReportExportControl exporter = new ReportExportControl();
                        //     set the reportsource property of the viewer
                        JPEReportSourceFactory rptSrcFactory = new JPEReportSourceFactory();
                        IReportSource reportSource = (IReportSource)rptSrcFactory.createReportSource(reportName,request.getLocale());
                        Boolean b1 = new Boolean(messageBundle.getString("Toggle.Group.TreeButton"));
                        Boolean b2 = new Boolean(messageBundle.getString("Has.ExportButton"));
                        Boolean b3 = new Boolean(messageBundle.getString("Has.SearchButton"));
                        Boolean b4 = new Boolean(messageBundle.getString("Display.GroupTree"));
                        Boolean b5 = new Boolean(messageBundle.getString("Has.Logo"));
                        Boolean b6 = new Boolean(messageBundle.getString("Display.Toolbar"));
                        crystalReportPageViewer.setHasToggleGroupTreeButton(true);
                        crystalReportPageViewer.setHasExportButton(true);
                        crystalReportPageViewer.setHasSearchButton(false);
                        crystalReportPageViewer.setDisplayGroupTree(false);
                        crystalReportPageViewer.setHasLogo(false);
                        crystalReportPageViewer.setOwnPage(true);
                        crystalReportPageViewer.setOwnForm(true);
                        crystalReportPageViewer.setReportSource(reportSource);
                        crystalReportPageViewer.processHttpRequest(request, response, application, null);
                        IReportSource reportSource = (IReportSource)rptSrcFactory.createReportSource(reportName,request.getLocale());
                        //CharacterSeparatedValuesExportFormatOptions csvOptions = new CharacterSeparatedValuesExportFormatOptions();
                        ExportOptions exportOptions = new ExportOptions();
                        //exportOptions.setExportFormatType(ReportExportFormat.characterSeparatedValues);
                        //exportOptions.setExportFormatType(ReportExportFormat.PDF);     
                        exportOptions.setExportFormatType(ReportExportFormat.characterSeparatedValues);
                        exporter.setReportSource(reportSource);
                        exporter.setExportOptions(exportOptions);
                   //exporter.setExportAsAttachment(true);
                        exporter.processHttpRequest(request, response, application, null);
                   // ****** END CONNECT CRYSTALREPORTPAGEVIEWER SNIPPET ****************          
         } catch (ReportSDKExceptionBase e) {
             out.println(e);
    %>
    if i want to add custom button where to add

  • How to set default export format in CrystalReports Viewer

    When Viewing Crystal Reports in InfoView, the top left button can choose export file format, how to set it default to Excel?

    Hi Jennie Xiang,
    You can set the default export format in Crystal designer before publishing in infoview.
    Open the report in Crystal designer and go to file>export>export options--> select the export option to xls and check the options that you want and click on OK.
    Now try exporting the report by clicking on export button then you can see the first option as xls with all format options that you have selected before by default.
    By saving this report at server (infoview) you can get the same options while exporting from viewer.
    Regards,
    Ragahvendra

  • Access Log format for Sun One Web Server 6.0 SP6

    Is it possible to add the Process Id to the access log? If so, what is the proper format for the access log entry in magnus.conf. We would like to be able to see which process each request used, just like in the error log.
    Thanks

    User agent and referer information can be logged. Refer to following docs(see under Table 7-1):
    http://docs.sun.com/source/816-5686-10/07_magnu.htm#33046
    Thanks,
    Manish

  • Access Log format ?

    Looking at the following log sample (Apache format Access Logs) and the bolded section contained between the <>:
    1.1.1.1 - - "16/Feb/2010:11:58:55 +1100" GET http://www.testsite.com 304 0  TCP_CLIENT_REFRESH_MISS:DIRECT 7ms  DEFAULT_CASE-DefaultGroup-DefaultGroup-NONE-DefaultRouting  <Shop,5.0,0,,,,,,,,,,,,> - 2.2.2.2 80 "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT  6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR  3.0.30729; Media Center PC 6.0; InfoPath.2; eMusic DLM/4)" "Shopping"
    This particular log sample has 15 fields between the <>. Every other log sample I've seen has 17 fields between the <>. So my question is, why would this happen? Is there some configuration on the Ironport itself that would modify this part of the logs? I know what some of those particular fields contain but is there a breakdown for what all those fields contain?

    This portion of the accesslog contains both the web category as well as the response from the various DVS engines.  The actual fields will vary depending on the features/code that is installed.  For example, in the upcoming 7.0 code there are several new fields to as a result of AVC (Application Visibility Control).  Similarly, when Cisco Web Usage Controls are enabled there are additional fields which note dynamically learned content.
    The best reference for each specific field, including between the <>'s, is the user guide which can be downloaded from the Cisco/IronPort Customer Support Portal.

  • Access log formatting

    Hi all,
    I currently have a log format as follows:
    format.access="%Ses->client.ip% | %SYSDATE% | \"%Req->reqpb.clf-request%\" | %Req->srv
    hdrs.clf-status% | %Req->srvhdrs.content-length% | %Req->headers.referer% | \"%Req->headers.user-agent%\" | %Req->reqpb.method
    % | %Req->reqpb.uri% | %Req->reqpb.protocol%^"
    I would like to change the [%SYSDATE%] parameter to our own format as we do not need to GMT offset.
    i.e. dd/mm/yyyy hh:mi:ss which equates to \"%D %T\" but when I put this in the magnus, then tail the logs I get "-T"
    Please help it's driving me mad!!
    LL

    Unfortunately, %D and %T aren't flex-log format components. The server is replacing the unknown "%D %" component with a dash. The only date flex-log format components are %SYSDATE% and %LOCALETIME%.

  • How to set the Logging in SAP Web AS through Netweaver 7.1 ?

    Hi,
    Can you please help us with the steps to set the Log Level and Log files using SAP Netweaver 7.1
    Thanks

    WHat kind of logs are you trying to set? If these are work process logs you can set on SM50, for example.
    Regards,
    Tiago

  • Reg: weblogic 5.1 access log format

    I'm using weblogic 5.1 with sp 13
    If i dispatch the request from the servlet to jsp it's not logged in the access.log
    and also i need to have the response time also for the particular jsp.
    Is there any way to do the above things.
    Regards
    Hari

    Hi.
    Looks like you're right. Please open a case with support to get these and refer to
    the following bug numbers: CR052727 and CR045962. These are pending issues to update
    the PDF files and restore the links to the PDF files.
    Thanks,
    Michael
    sudarson wrote:
    Hi All,
    Previously weblogic 5.1 docs were available in weblogic site. But now when I tried
    to find those pdfs in the site , I couldn't find out. Instead, now it's available
    in only zipped html form.Can any body pls tell me where can I get those pdfs ?
    Thanks and Regards,
    Sudarson--
    Developer Relations Engineer
    BEA Support

  • How to set default number format for whole app

    Hi!
    I have a bunch of View Objects and I have to set the format for each attribute of type number. I've tried using
    MyAtt_FMT_FORMAT=#,##0.00
    MaAtt_FMT_FORMATTER=oracle.jbo.format.DefaultNumberFormatter
    on just a couple of attributes and it works OK. But since I have a lot of number fields across application in a lots of view objects, I would like to set this format as default for all the number fields in my application.
    Can I do that and if yes, how?
    Thanks

    you can use Domains.
    chapter 26 Advanced Entity Object Techniques in Developer’s Guide For Forms/4GL Developers
    Regards,

  • How to set NC Log API

    Hi all,
    I want to use the following NC log API,but I don't know how to initialize the interface's java object and set the parameter "ApplicationVO".
    Interface LogNCApplicationInterface
    Method ApplicationVO addNDone(ApplicationVO applicationvo)
    Please help me.Thank you!
    Qiang Liu

    if you just need to log an NC the minimum fields you need to set are the following:
    CreateNCRequest ncRequest = new CreateNCRequest();
    ncRequest.setActivity("NC500"); // activity where NC is logged - can be any name
    ncRequest.setSfcRef(new SFCBOHandle(site, sfcParent).toString());// the SFC for which you are reporting an NC
    // ncRequest.setValidateNCCodeOperation(true); // no need to set it, it's true by default
    // nc code reference for nc code that is reported
    // nc code must exist in the system
    ncRequest.setNcCodeRef(new NCCodeBOHandle(site,"NCCODE").toString());
    // required custom fields must be set
    CreateNCResponse ncResponse = ncPSI.createNC(ncRequest);

  • How To Set Excel Column Format Latebinding

    private void WriteToExcel(ref System.Data.DataTable dtExcel)
    //Microsoft.Office.Interop.Excel.Application oXL = null;
    //Microsoft.Office.Interop.Excel._Workbook oWB;s
    //Microsoft.Office.Interop.Excel._Worksheet oSheet;
    //SaveFileDialog SFD = new SaveFileDialog();
    //SFD.Filter = "Excel 97-2003 Workbook(*.xls)|*.xls|Excel Workbook(*.xlsx)|*.xlsx|Excel Binary Workbook(*.xlsb)|*.xlsb|" +
    //"Excel Macro-Enabled Workbook(*.xlsm)|*.xlsm";
    //SFD.ShowDialog();
    /*Cell Format Text,
    Format Excel cells to store values as text
    Formating Excel cells to text format will solve the problem of losing leading zeo values when you export data from other data sources to excel.
    Excel.Range formatRange;
    formatRange = xlWorkSheet.get_Range("a1", "b1");
    formatRange.NumberFormat = "@";
    xlWorkSheet.Cells[1, 1] = "098";
    if (dgvData.RowCount == 0)
    MessageBox.Show("GridView is Empty.");
    return;
    tlsStatus.Text = "Export To Excel Strats.... ";
    tlsStatus.ForeColor = System.Drawing.Color.DeepPink;
    prbExcelGen.Value = 0;
    prbExcelGen.Minimum = 0;
    prbExcelGen.Maximum = dgvData.RowCount;
    prbExcelGen.Step = 1;
    prbExcelGen.Refresh();
    object objApp_Late;
    object objBook_Late;
    object objBooks_Late;
    object objSheets_Late;
    object objSheet_Late;
    object objRange_Late;
    object[] Parameters;
    string[] headers = new string[dgvData .ColumnCount];
    string[] columns = new string[dgvData.ColumnCount];
    int i = 0;
    int c = 0;
    for (c = 0; c <= dgvData.ColumnCount - 1; c++)
    headers[c] = dgvData.Rows[0].Cells[c].OwningColumn.Name.ToString();
    //Convert Cell Names To A,B,C...Z , 65+C=CHR(C)=>A WHEN C=0
    i = c + 65;
    columns[c] = Convert.ToString((char)i);
    try
    // Get the class type and instantiate Excel.
    Type objClassType;
    objClassType = Type.GetTypeFromProgID("Excel.Application");
    objApp_Late = Activator.CreateInstance(objClassType);
    //Get the workbooks collection.
    objBooks_Late = objApp_Late.GetType().InvokeMember("Workbooks",BindingFlags.GetProperty, null, objApp_Late, null);
    //Add a new workbook.
    objBook_Late = objBooks_Late.GetType().InvokeMember("Add",BindingFlags.InvokeMethod, null, objBooks_Late, null);
    //Get the worksheets collection.
    objSheets_Late = objBook_Late.GetType().InvokeMember("Worksheets",BindingFlags.GetProperty, null, objBook_Late, null);
    //Get the first worksheet.
    Parameters = new Object[1];
    Parameters[0] = 1;
    objSheet_Late = objSheets_Late.GetType().InvokeMember("Item",
    BindingFlags.GetProperty, null, objSheets_Late, Parameters);
    //if (true)
    // Create the headers in the first row of the sheet
    for (c = 0; c <= dgvData.ColumnCount - 1; c++)
    //Get a range object that contains cell.
    Parameters = new Object[2];
    Parameters[0] = columns[c] + "1";
    Parameters[1] = Missing.Value;
    objRange_Late = objSheet_Late.GetType().InvokeMember("Range",
    BindingFlags.GetProperty, null, objSheet_Late, Parameters);
    //Write Headers in cell.
    Parameters = new Object[1];
    Parameters[0] = headers[c];
    objRange_Late.GetType().InvokeMember("Value", BindingFlags.SetProperty,
    null, objRange_Late, Parameters);
    // Now add the data from the grid to the sheet starting in row 2
    for (i = 0; i < dgvData.RowCount - 1; i++)
    prbExcelGen.PerformStep();
    prbExcelGen.Refresh();
    for (c = 0; c <= dgvData.ColumnCount - 1; c++)
    //Get a range object that contains cell.
    Parameters = new Object[2];
    Parameters[0] = columns[c] + Convert.ToString(i + 2);
    Parameters[1] = Missing.Value;
    objRange_Late = objSheet_Late.GetType().InvokeMember("Range",
    BindingFlags.GetProperty, null, objSheet_Late, Parameters);
    //Write Headers in cell.
    Parameters = new Object[1];
    Parameters[0] = dgvData.Rows[i].Cells[headers[c]].Value.ToString();
    objRange_Late.GetType().InvokeMember("Value", BindingFlags.SetProperty,
    null, objRange_Late, Parameters);
    //if (i == 0)
    // BoldRow(i, c, (EXL._Worksheet)objSheet_Late);
    tlsStatus.Text = "Exporting Records...." + i;
    //Return control of Excel to the user.
    Parameters = new Object[1];
    Parameters[0] = true;
    tlsStatus.Text = "Exporting Completed.";
    objApp_Late.GetType().InvokeMember("Visible", BindingFlags.SetProperty,
    null, objApp_Late, Parameters);
    objApp_Late.GetType().InvokeMember("UserControl", BindingFlags.SetProperty,
    null, objApp_Late, Parameters);
    * oWB.SaveAs(fileName, Excel.XlFileFormat.xlOpenXMLWorkbook,
    missing, missing, missing, missing,
    Excel.XlSaveAsAccessMode.xlNoChange,
    missing, missing, missing, missing, missing);
    //oWB = (Microsoft.Office.Interop.Excel._Workbook)objBook_Late;
    //oWB.SaveAs("file", EXL.XlFileFormat.xlXMLSpreadsheet, Type.Missing, Type.Missing, Type.Missing, Type.Missing, EXL.XlSaveAsAccessMode.xlNoChange, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing);
    //oWB.Save();
    catch (Exception theException)
    String errorMessage;
    errorMessage = "Error: ";
    errorMessage = String.Concat(errorMessage, theException.Message);
    errorMessage = String.Concat(errorMessage, " Line: ");
    errorMessage = String.Concat(errorMessage, theException.Source);
    MessageBox.Show(errorMessage);
    finally
    using the above code i am writing to excel sheet can some one help me to tell how can i set a column type as text 

    Thanks Forum,
    i got the answer here
    https://social.msdn.microsoft.com/Forums/windows/en-US/36340ada-e13b-41cb-a31d-fb76121aa0d2/c-exporting-text-file-to-excel-and-column-formatting-problem?forum=csharpgeneral

Maybe you are looking for

  • How can I transfer photos from my computer to my iphone

    My iphone doesn't accept photos when I try to transfer from my computer to my iphone.

  • How to get rid of the Nav bar

    I want to get rid of the Nav Bar which contains Prev, Next Refresh and hide buttons. We can hide the buttons in that bar by commenting writeToolBar(); in whskin_mbars.htm file. But still unable to hide the complete bar. I am using RoboHelp 7 with Web

  • How do I prevent Safari from suggesting previously visited websites?

    Hi all, I am going nuts here!! How do I stop Safari on my ipad mini from suggesting a long list of old websites everytime I start entering a website ? Yes, I have cleared cache and I have cleared the history as well as the Cookies & Data in Settings.

  • Imac hard drive issues

    Over the last two days, my imac has been playing up. When doing anything the harddrive starts clicking, the colour wheel starts going... and everything freeezes up. it happenes constantly. Am running updates now, but I suspect the harddrive is on its

  • How do I install the DNxHD and Cineform codecs? (Missing from AME 6 )

    I have downloaded the free versions of both of these codecs in the hopes of being able to transcode to each as an intermediate codec for my AVCHD files. The problem is that neither shows up in either my Premiere Pro CS6 or Adobe Media Encoder Import/