how to remove "OPTIONS * HTTP/1.0" 200 - from logs?

postcd

Well-Known Member
Oct 22, 2010
720
20
68
Hello,

in this post, Infopro links to cpanelDon post where he link to article InternalDummyConnection - Httpd Wiki

in article is written that to exclude ""OPTIONS * HTTP/1.0" and similar log entries from Apache logs one should do add:

Code:
SetEnvIf Remote_Addr "127\.0\.0\.1" loopback
and then add env=!loopback to the end of your CustomLog directive.[/QUOTE]

but i dont understand on where to add it exactly on WHM centos 6 server, which file, any example please?

My aim is to remove excessive entries from my /usr/local/apache/logs/access_log file:

[QUOTE]::1 - - [28/Sep/2014:11:08:30 -0400] "OPTIONS * HTTP/1.0" 200 -
::1 - - [28/Sep/2014:11:08:30 -0400] "OPTIONS * HTTP/1.0" 200 -
::1 - - [28/Sep/2014:11:08:31 -0400] "OPTIONS * HTTP/1.0" 200 -
::1 - - [28/Sep/2014:11:08:31 -0400] "OPTIONS * HTTP/1.0" 200 -
::1 - - [28/Sep/2014:11:08:32 -0400] "OPTIONS * HTTP/1.0" 200 -
::1 - - [28/Sep/2014:11:08:32 -0400] "OPTIONS * HTTP/1.0" 200 -
::1 - - [28/Sep/2014:11:08:33 -0400] "OPTIONS * HTTP/1.0" 200 -
::1 - - [28/Sep/2014:11:08:33 -0400] "OPTIONS * HTTP/1.0" 200 -
::1 - - [28/Sep/2014:11:08:34 -0400] "OPTIONS * HTTP/1.0" 200 -
::1 - - [28/Sep/2014:11:08:34 -0400] "OPTIONS * HTTP/1.0" 200 -
::1 - - [28/Sep/2014:11:08:35 -0400] "OPTIONS * HTTP/1.0" 200 -
::1 - - [28/Sep/2014:11:08:35 -0400] "OPTIONS * HTTP/1.0" 200 -
::1 - - [28/Sep/2014:11:08:41 -0400] "OPTIONS * HTTP/1.0" 200 -
::1 - - [28/Sep/2014:11:08:41 -0400] "OPTIONS * HTTP/1.0" 200 -
::1 - - [28/Sep/2014:11:08:42 -0400] "OPTIONS * HTTP/1.0" 200 -
::1 - - [28/Sep/2014:11:08:42 -0400] "OPTIONS * HTTP/1.0" 200 -
::1 - - [28/Sep/2014:11:08:43 -0400] "OPTIONS * HTTP/1.0" 200 -
::1 - - [28/Sep/2014:11:08:43 -0400] "OPTIONS * HTTP/1.0" 200 -
::1 - - [28/Sep/2014:11:08:44 -0400] "OPTIONS * HTTP/1.0" 200 -
::1 - - [28/Sep/2014:11:08:44 -0400] "OPTIONS * HTTP/1.0" 200 -
::1 - - [28/Sep/2014:11:08:45 -0400] "OPTIONS * HTTP/1.0" 200 -
::1 - - [28/Sep/2014:11:08:45 -0400] "OPTIONS * HTTP/1.0" 200 -
::1 - - [28/Sep/2014:11:08:46 -0400] "OPTIONS * HTTP/1.0" 200 -
::1 - - [28/Sep/2014:11:08:46 -0400] "OPTIONS * HTTP/1.0" 200 -
::1 - - [28/Sep/2014:11:08:47 -0400] "OPTIONS * HTTP/1.0" 200 -
::1 - - [28/Sep/2014:11:08:47 -0400] "OPTIONS * HTTP/1.0" 200 -
::1 - - [28/Sep/2014:11:08:48 -0400] "OPTIONS * HTTP/1.0" 200 -
::1 - - [28/Sep/2014:11:08:48 -0400] "OPTIONS * HTTP/1.0" 200 -
::1 - - [28/Sep/2014:11:08:50 -0400] "OPTIONS * HTTP/1.0" 200 -
::1 - - [28/Sep/2014:11:08:50 -0400] "OPTIONS * HTTP/1.0" 200 -
::1 - - [28/Sep/2014:11:08:51 -0400] "OPTIONS * HTTP/1.0" 200 -
::1 - - [28/Sep/2014:11:08:51 -0400] "OPTIONS * HTTP/1.0" 200 -
as i dont think they are benefficial and only makind HDD bussy and fill space, am i wrong?
 
Last edited:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
as i dont think they are benefficial and only makind HDD bussy and fill space, am i wrong?
Hello :)

Removing the output from the log isn't going to make that activity stop. It's simply not going to log it. You can find a post here that explains the purpose of that output:

Options Request

I don't suggest suppressing the logging, as it might be helpful in diagnosing an issue or attack in the future.

Thank you.
 

postcd

Well-Known Member
Oct 22, 2010
720
20
68
So how i can achieve to see usefull access_lg information that were there before? The OPTIONS data currently there are not usefull to me
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
So how i can achieve to see usefull access_lg information that were there before? The OPTIONS data currently there are not usefull to me
I believe you misunderstood. There won't be additional data, but those entries on their own might be helpful in the event you notice your server is under heavy load or a DOS attack. From what I understand, you are not actually experiencing that type of issue, but are simply curious about the entries correct?

Thank you.
 

postcd

Well-Known Member
Oct 22, 2010
720
20
68
those entries on their own might be helpful in the event you notice your server is under heavy load or a DOS attack.
Hello, please anyone know how exactly i can use these apache entries? It do not contain any IP address. It just dont look that can help identiffy some cause
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
Hello, please anyone know how exactly i can use these apache entries? It do not contain any IP address. It just dont look that can help identiffy some cause
Could you provide additional information about the current issue you are facing?

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
Hello, please anyone know how exactly i can use these apache entries?
Could you provide specific details on how you would like to use these entries? The previous posts were from 2014, so I'm not clear on the current issue you are facing.

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
To clarify, it's not abnormal to see these types of entries. Please explain the specific problem you are experiencing. For instance, are you under an attack, is your server load slow? We will need specific details to help troubleshoot the issue.

Thank you.