diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml
index d577bac..dbcb9ec 100644
--- a/doc/src/sgml/func.sgml
+++ b/doc/src/sgml/func.sgml
@@ -15673,8 +15673,13 @@ SET search_path TO <replaceable>schema</> <optional>, <replaceable>schema</>, ..
     the time when the postmaster process re-read the configuration files.)
    </para>
 
-    <indexterm>
-    <primary>pg_current_logile</primary>
+   <indexterm>
+    <primary>pg_current_logfile</primary>
+   </indexterm>
+
+   <indexterm>
+    <primary>Logging</primary>
+    <secondary>pg_current_logfile function</secondary>
    </indexterm>
 
    <para>
diff --git a/doc/src/sgml/storage.sgml b/doc/src/sgml/storage.sgml
index 377820b..1cfb9da 100644
--- a/doc/src/sgml/storage.sgml
+++ b/doc/src/sgml/storage.sgml
@@ -61,8 +61,18 @@ Item
 </row>
 
 <row id="storage-pgdata-current-logfiles" xreflabel="current_logfiles">
- <entry><filename>current_logfiles</></entry>
- <entry>A file recording the current log file(s) used by the syslogger and
+ <entry>
+  <indexterm>
+   <primary><filename>current_logfiles</filename></primary>
+  </indexterm>
+  <indexterm>
+   <primary>Logging</primary>
+   <secondary><filename>current_logfiles</filename> file</secondary>
+  </indexterm>
+  <filename>current_logfiles</>
+ </entry>
+ <entry>
+  A file recording the current log file(s) used by the syslogger and
   its log format, <systemitem>stderr</> or <systemitem>csvlog</>. Each line
   of the file is a space separated list of two elements: the log format and
   the full path to the log file including the value
